:: Re: [DNG] connection manager as fai…
Page principale
Supprimer ce message
Répondre à ce message
Auteur: Xenguy.fl9z
Date:  
À: dng
Sujet: Re: [DNG] connection manager as failing dns resolver?
On Thursday, April 29, 2021 4:19:34 PM, dng@??? wrote
> On 29-04-2021 22:11, Hendrik Boom wrote:
> > On Mon, Apr 26, 2021 at 12:53:53PM -0700, Rick Moen wrote:
> >> Quoting Hendrik Boom (hendrik@???):
> >>> Looks as if the connection manager is taking over dns.
> >>>
> >>> Who knew? And whom does it talk to? Does it contain its own
> >>> recursive DNS resolver? Or does it just pick up on the DHCP
> >>> signals it gets from elsewhere and take over?
> >> connman (which I don't use, and have only read about) does _not_
> >> appear to include a recursive nameserver.
> >> https://launchpad.net/connman
> >>
> >> The data you've posted so far that I've read in this thread (but I
> >> haven't caught up with the full thread, yet) seem bizarre, in
> >> suggesting that connman itself is hogging port 53 on localhost --
> >> which would definitely mean either it's handling any recursive
> >> requests or nothing is.
> >>
> >> I'd have been extremely surprised if any connection management
> >> utility had an integral recursive nameserver. The latter are
> >> complicated projects, which is why there have been relatively few
> >> successful ones.
> > It would surprise me, too.
> >
> > My guess is that it gets the DHCP information and does nothing but
> > relay DNS requests to the DHCP-indicated nameserver.
> >
> > The problem I'm having is that sometimes the network anager seems to
> > fail in some unclear fashion, and when it does so, even if it
> > manages to re-establish connexions to the rest of the world, even
> > through the same server, it doesn't always seem to be able to do
> > name resolution afterward. So DNS requests fail.
> >
> > It might re-establish taht connection through a different hardware
> > device on the laptop, by the way, such as switching between wired
> > and wifi. Although all these connections lead to the same server
> > with the same IP number.
> >
> > To keep tings running, I hand-edit /etc/resolv.conf to point to an
> > easily remembered nameserver, such as 8.8.8.8.
> >
> > Of course that's clobbered next time I boot then machine.
> >
> > So I'm wondering -- can I stop the connectino manager from being
> > obnoxious, or if I replace it, what to I replace it with?
> >
> > -- hendrik
> >
> > P.S. I seem to emember having a diffrent program setting up
> > connections long ago on another machine. Might it have been called
> > network manager? What such tools are available?
> >
> > If it weren't a single-user-at-a-time personal computer, having
> > network setup be a user instead of system responsibility would be
> > stupid. As it is, when I boot up in a strange place I might like
> > some control as to what to connect to, so this stupid policy works
> > out OK.
> >
> > -- hendrik
>
> I do have one stubborn laptop which has a similar behavior and to keep
> it going i have entered the dns in /etc/resolv.conf and made the file
> readonly. So far this works fine.
>
> Grtz.
>
> Nick


I'm not sure if this is the same issue, but will mention it FWIW.

I have been using wicd for some time, but when I heard that it may be
disappearing in our next release, I decided to try 'connman' (along with
'cmst' for the system tray component) as a replacement for wicd.

It seems to work fine, but I have not tested it much. What I did happen
to notice though, was that connman seemed to import 2 nameserver IP's
automatically, and I *think* they originated from a configuration in my
router, which I no longer wish to use. I was able to manually configure
connman to list the nameserver as 127.0.0.1, which is the configuration
I prefer, because I am running 'unbound', a local DNS resolver. I have
not tested whether or not my manual configuration persists indefinitely,
as I would prefer it did.

As for all the various software that like to modify the /etc/resolv.conf
file contents, I have never understood the point of this behavior, and
found it very annoying from the very first time I noticed this, years
ago now. Accordingly, I use 'chattr +i /etc/resolv.conf' to make the
file, and therefore my DNS settings, immutable. This seems to work fine
for me.

X.