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.
Address resolution question 1
-
- Posts: 1522
- Joined: 2014/05/21 20:16:00
- Location: Central New York, USA
Re: Address resolution question 1
That's got the 2 entries the wrong way round though whether it makes any difference is another question. The syntax isThe hosts entry: nn.nn.11.124 printer printer.domainname
"ip.add.re.ss full.host.name alias1 alias2 ... aliasN"
The future appears to be RHEL or Debian. I think I'm going Debian.
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 and 6 are deadest, do not use them.
Use the FAQ Luke
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 and 6 are deadest, do not use them.
Use the FAQ Luke
-
- Posts: 1522
- Joined: 2014/05/21 20:16:00
- Location: Central New York, USA
Re: Address resolution question 1
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.
You may have just negated what was going to be resolution question 2.
-
- Posts: 1522
- Joined: 2014/05/21 20:16:00
- Location: Central New York, USA
Re: Address resolution question 1
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.
Thanks again - at least I got the hosts file they way it ought to be.