On Ubuntu 10.04, should /etc/hostname contain the server's fully-qualified domain name?
|
No, just the hostname portion. According to Ubuntu's man pages,
|
|||||||||
|
|
Josh points out what Ubuntu recommends, but I'm not sure it's a hard and fast rule.
As the man page says, it's also used as the input to a DNS query when doing
Which means that if it's a bare word, the resolver will append the domains listed in the So I would say either is valid. I'd be very interested if anyone can demonstrate otherwise. |
|||
|
|
With libnss-myhostname installed, you can write the fqdn to
|
|||
|
|