Re: Why does resolv.conf keep changing?
On Wednesday 25 October 2017 11:05:28 Dan Ritter wrote:
> On Wed, Oct 25, 2017 at 07:35:35AM -0400, Gene Heskett wrote:
> > On Tuesday 24 October 2017 23:46:47 Felix Miata wrote:
> > > Gene Heskett composed on 2017-10-24 22:52 (UTC-0400):
> > > >> On Mon, Oct 23, 2017 at 20:31:05 -0400, Gene Heskett wrote:
> > > >>>and made immutable. Particularly is the fact that
> > > >>> /etc/resolv.conf isn't a link to something else but contains:
> > > >>>
> > > >>>nameserver 192.168.XX.1
> > > >>>search host dns
> > > >>>domain coyote.den
> > >
> > > ...
> > Whereas my theory has always been WRT the search line, that it
> > should first search the /etc/hosts file for a name match, and
> > failing that, query my router, which is running dd-wrt which means
> > its running dnsmasq.
> In order to do that, you want this:
> in /etc/nsswitch.conf:
> hosts: files dns
> Which is the standard for Debian and basically all other Linux
> distros that I know about.
> That tells the DNS resolver to look at /etc/hosts first, and
> then make a DNS query if /etc/hosts does not have an answer.
> Note that isn't in resolv.conf, it's in nsswitch.conf.
And mine gives more choices yet. :)
hosts: files mdns4_minimal [NOTFOUND=return] dns mdns4
Cheers, Gene Heskett
"There are four boxes to be used in defense of liberty:
soap, ballot, jury, and ammo. Please use in that order."
-Ed Howdershelt (Author)
Genes Web page <http://geneslinuxbox.net:6309/gene>