Page 1 of 1

Address resolution question 1

Posted: 2019/06/12 15:07:24
by lightman47
I have defined "printer" in the hosts file of my UBNT Edgemax Lite (running dnsmasq). Whenever I do anything from the command line regarding 'printer' from any machine on the network, it always resolves correctly. However, in both my web browsers (Firefox & Google Chome), if I try to open the printer setup page, the browser bypasses my hosts file and tries to resolve it out on the Web - failing of course. When I add the domain into the browser window (printer.domainname) the browser then resolves correctly.

The hosts entry: nn.nn.11.124 printer printer.domainname

Is this (non-critical) phenomenon because of the way I have defined it, or just a browser 'thing'?

Thank you.

Re: Address resolution question 1

Posted: 2019/06/12 15:26:26
by TrevorH
The hosts entry: nn.nn.11.124 printer printer.domainname
That's got the 2 entries the wrong way round though whether it makes any difference is another question. The syntax is

"ip.add.re.ss full.host.name alias1 alias2 ... aliasN"

Re: Address resolution question 1

Posted: 2019/06/12 16:08:42
by lightman47
I have often wondered about that ! Thank you - will go in and change them all around (some have 4 aliases).

You may have just negated what was going to be resolution question 2. ;-)

Re: Address resolution question 1

Posted: 2019/06/12 16:49:36
by lightman47
Okay - changed the hosts file and restarted dnsmasq. Doesn't seem to have changed but there may be some cache involved as well - likely browser. If so, I'm hesitant to empty for fear of what else I'll lose and frankly, it's just not important enough.

Thanks again - at least I got the hosts file they way it ought to be.