hostname -f says "hostname: the specified hostname is invalid". Guess why?

Posted by Ivan on Server Fault See other posts from Server Fault or by Ivan
Published on 2010-06-29T04:45:13Z Indexed on 2012/11/06 17:05 UTC
Read the original article Hit count: 267

Filed under:
|
|
|

hostname -f says "hostname: the specified hostname is invalid". The hostname (FQDN) specified in /etc/hostname is also listed in /etc/hosts and is pingable. No actual DNS server yet of the host knows. Is this a reason of the error reported or something else? (the OS is Ubuntu 10.04 Server).

Update: registering the host at a DNS server (so that the name can be successfully resolved via Internet) did not help.

© Server Fault or respective owner

Related posts about ubuntu

Related posts about dns