Firefox – Does Firefox ignore the hosts file? How to make Firefox honor the hosts file

firefoxhosts

I'm using Firefox browser in Ubuntu 18.04. I made an experiment where I want some domain names to be resolved to another IP address than their actual one. Firefox seems to ignore the IP in the hosts file.

1) Is this expected behavior from Firefox?

2) If yes, how to make Firefox honor the hosts file?

3) If not possible, are there alternative browsers that honor the hosts file?

I use Linux Ubuntu 18.04

Best Answer

I had the same problem. Write about:config in the address bar.

Search for dns and change network.dns.offline-local to false.

about:config settings page on firefox

Related Question