My hosts file is being ignored, apparently.
It contains:
127.0.0.1 localhost.localdomain localhost
127.0.0.1 mydomain.com
127.0.0.1 nowhere
If I ping localhost or 'nowhere', I get an 'unknown host' error. If I ping mydomain.com, ping succeeds, but it reports the internet ip address (from an outside name server) for mydomain.com.
The server is running ubuntu hardy. Is there a way disable (and reenable) the /etc/hosts file?
localhostusing DNS and was getting wrong answer. Nowhere it was reported anything about permissions on/etc/hosts. changed permissions tochmod 644 /etc/hostsand magic happens! – Anto Aug 14 '19 at 07:32