:: Re: [DNG] Stuff mucking with /etc/r…
Etusivu
Poista viesti
Vastaa
Lähettäjä: tito
Päiväys:  
Vastaanottaja: dng
Aihe: Re: [DNG] Stuff mucking with /etc/resolv.conf (was Re: request for advice)
On Thu, 20 Jul 2023 18:07:08 -0400
Hendrik Boom <hendrik@???> wrote:

> On Thu, Jul 20, 2023 at 12:09:31PM +0200, Didier Kryn wrote:
>
> >
> >     I was just meaning to say that the good place for volatile files like
> > resolv.conf is in tmpfs and /run is designed exactly for that kind of file.
> > And that's not a systemd feature. Since the canonical name of the file is
> > /etc/resolv.conf, the use of a symlink is well apropriate.
>
> Still need a place to store the normal, default configuration,
> where it will still be available after the various connexion
> managers have had their way with the system.
>
> -- hendrik
> _______________________________________________
> Dng mailing list
> Dng@???
> https://mailinglists.dyne.org/cgi-bin/mailman/listinfo/dng


Hi

connection manager's resolv.conf can be disabled:

for NetworkManager add

[main]
dns=none

for isc-dhcp and ifupdown add:

cat /etc/dhcp/dhclient-enter-hooks.d/nodnsupdate

#!/bin/sh
make_resolv_conf(){
        :
}




Ciao,
Tito