/etc/hosts file is ignored by browsers

Connection sharing, Firewall, Samba..etc
Forum rules
Before you post please read how to get help
Post Reply
Level 1
Level 1
Posts: 1
Joined: Sun Jul 21, 2019 8:25 pm

/etc/hosts file is ignored by browsers

Post by andrsenpetrov » Sun Jul 21, 2019 8:43 pm

Hi, everyone!

I am trying to setup siriusmurkus.abc.edu host in the /etc/hosts in order to access wifi router admin panel by typing siriusmurkus.abc.edu :)
strange domain name

- /etc/nsswitch.conf there is the following order - hosts: files mdns4_minimal [NOTFOUND=return] dns myhostname
- /etc/resolv.conf - added siriusmurkus.abc.edu
- checked there is NO PROXY set in Network Settings and in browsers

Actually, siriusmurkus.abc.edu is pinged successfully in Terminal, but when I type the same name in Firefox or Chromium it says this site can't be reached.
On Windows machine it started to work right after I modified hosts file, therefore it might have something to do with Linux Mint in general, not with etc/hosts file
I don't know

Any ideas, what else to try?

Level 3
Level 3
Posts: 197
Joined: Sun Jan 25, 2015 3:35 pm
Location: Norway

Re: /etc/hosts file is ignored by browsers

Post by SprinterDriver » Tue Jul 23, 2019 12:43 pm

My guess is you need to reboot for the hosts file to take effect.
So I got this bright idea. But when I tried to grab the light bulb, I did not hurt my hands as expected from a warm bulb, because it turned out to be one of those LED bulbs.

Level 18
Level 18
Posts: 8717
Joined: Thu Jun 21, 2018 5:11 pm

Re: /etc/hosts file is ignored by browsers

Post by gm10 » Tue Jul 23, 2019 1:25 pm

You don't need to reboot but you may need to restart the browser/clear it's cache. Browsers use DNS caching, e.g. chrome://net-internals/#dns.

What I don't understand is the choice of host name. Is this a new form of link spam? :P
Tune up your LM 19.x: ppa:gm10/linuxmint-tools

Post Reply

Return to “Other networking topics”