On Thu, May 23, 2024 at 07:53:31AM -0400, Paul M Foster wrote: > On Thu, May 23, 2024 at 12:54:31AM -0400, Jeffrey Walton wrote: > > > On Thu, May 23, 2024 at 12:43 AM Paul M Foster <pa...@quillandmouse.com> > > wrote: > > [snip] > > > > On the video server, run nslookup and see if it can resolve > > yosemite.mars.lan. > > Nslookup fails. However, yosemite.mars.lan is in the hosts file and you > can successfully ping it. It has a fixed (local) IP, which was set in the > router. I don't understand why nslookup fails when buckaroo knows who > yosemite is.
Nslookup asks directly your name servers (those in the resolv.conf). Programs should ask the local resolver [1] , which can (and usually is) configured to look first in /etc/hosts (that's this line hosts: files dns in your /etc/nsswitch.conf). Some applications (browser, I'm looking at you!) which deem themselves more important than all the other snowflakes are starting to bypass this. Cheers [1] this is a library, which comes with a man page -- tomás
signature.asc
Description: PGP signature