Nekoya Press

2014-06-13 Fri 08:23

debian/Ubuntuの/etc/hostnameにはFQDNではなくshort nameを書く


UbuntuFQDN/etc/hostnameshort nameVagrantconfig.vm.hostnameFQDNdebian
3.2.5. The hostname

The kernel maintains the system hostname. The init script in runlevel S which is symlinked to "/etc/init.d/hostname.sh" sets the system hostname at boot time (using the hostname command) to the name stored in "/etc/hostname". This file should contain only the system hostname, not a fully qualified domain name.

only

serverfaultSetting the hostname: FQDN or short name?CentOS, RHEL, debian

CentOS使/etc/sysconfig/networkFQDNdebian


/etc/hostnameshort name

/etc/hostsFQDN


hostname

Ubuntuhostnameman
You can't change the FQDN (as returned by hostname --fqdn) or  the  DNS domain  name (as returned by dnsdomainname) with this command.


nekoya.github.io