Wednesday, January 13, 2010

Linux Ignoring /etc/hosts file?

The solution:
sudo nano /etc/nsswitch.conf
and make sure the following line is in there:
hosts:          files mdns4_minimal [NOTFOUND=return] dns mdns4

(the "files" is the most important)

No comments:

Post a Comment

AddThis

Bookmark and Share