Comment 19 for bug 993298

Revision history for this message
d1663m (duane-meyer) wrote :

Ubuntu 14.04 - Firefox browser refuses to obey /etc/hosts

I have an entry in /etc/hosts pointing to a public internet IP which doesn't already have a DNS hostname associated.

Following advice from this post: http://askubuntu.com/questions/117899/configure-dnsmasq-to-use-etc-hosts-file

I added/edited this file on my system: /etc/NetworkManager/dnsmasq.d/hosts.conf

Adding the following line:
addn-hosts=/etc/hosts

After restarting network-manager, nslookup and dig both respond with the IP address configured in /etc/hosts as I would expect.

Firefox still refuses to obey the host entry. Even after a system reboot. Even when dnsmasq is returning a result for command line DNS lookup tools.