User Tools

Site Tools


hostname

If you want to send us your comments, please do so. Thanks
More on comments


hostname

man pages

Show the current hostname

hostname

Warning: If a machine has multiple network interfaces/addresses or is used in a mobile environment, then it may either have multiple FQDNs/domainnames or none at all

Show the current IP adres of the computer

hostname --ip-address

Show the FQDN (Fully Qualified Domain Name)

hostname --fqdn

See also

  • domainname ( = hostname --nis )
  • dnsdomainname ( = hostname --domain )

Change the hostname

systemd

Do

hostnamectl set-hostname mymachine

exim4

Do

dpkg-reconfigure exim4-config

Others and systemd

Check (and change) the hostname the hostname in

/etc/cups/printers.conf
/etc/exim4/update-exim4.conf.conf
/etc/hostname
/etc/hosts
/etc/mailname
/etc/sudoers (edit with visudo !)

Main subjects on this wiki: Linux, Debian, HTML, Microcontrollers, Privacy

RSS
Disclaimer
Privacy statement
Bugs statement
Cookies
Copyright © : 2014 - 2024 Webevaluation.nl and the authors
Changes reserved.

This website uses cookies. By using the website, you agree with storing cookies on your computer. Also you acknowledge that you have read and understand our Privacy Policy. If you do not agree leave the website.More information about cookies
hostname.txt · Last modified: 10-05-2020 19:03 by wim