[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Why does resolv.conf keep changing?



On Thursday 26 October 2017 12:13:57 Nicholas Geovanis wrote:

> An interesting, accidental FYI on the subject of the resolvconf
> package: Just now I upgraded an Ubuntu 17.04 test machine which was
> fully upgraded only ten days ago. I see in the pending upgrade details
> that resolvconf is "No longer supported by Canonical" since the
> previous upgrade.
>
Gee, I wonder why, said Gene to no one in particular ;-)

> On Thu, Oct 26, 2017 at 10:54 AM, The Wanderer <wanderer@fastmail.fm> 
wrote:
> > On 2017-10-26 at 11:35, Glenn English wrote:
> > > On Wed, Oct 25, 2017 at 1:06 AM, Michael Stone <mstone@debian.org>
> >
> > wrote:
> > >> On Mon, Oct 23, 2017 at 08:31:05PM -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
> > >>
> > >> Please stop posting that, it uses incorrect syntax
> > >
> > > The 'search host dns' line? How do you set that order? I couldn't
> > > find that from a bit of surfing, and I'd like to have name lookups
> > > work in that order...
> >
> > As was explained later on in this thread (and, I presume, would have
> > been explained to Gene previously in other threads), you set that
> > search order in /etc/nsswitch.conf, not in /etc/resolv.conf.
> >
> > 'man nsswitch.conf' documents the file, but all you should probably
> > need to do is look at the existing file, and tweak the 'hosts' line
> > appropriately.
> >
> >
> > If what you want is "search /etc/hosts, then search DNS, then give
> > up", the 'hosts' line you want is:
> >
> > hosts:          files dns
> >
> > There are additional options that might make sense, but that's the
> > most basic form.
> >
> >
> > My own nsswitch.conf hosts entry, which IIRC is fairly bog-standard
> > except maybe for a bit of reordering, reads:
> >
> > hosts:          files mdns4_minimal [NOTFOUND=return] dns mdns4
> >
> > which, according to my understanding, simply adds a few additional
> > types of DNS lookup into the series before giving up.
> >
> > --
> >    The Wanderer
> >
> > The reasonable man adapts himself to the world; the unreasonable one
> > persists in trying to adapt the world to himself. Therefore all
> > progress depends on the unreasonable man.         -- George Bernard
> > Shaw


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>


Reply to: