:: Re: [DNG] Stuff mucking with /etc/r…
Página Principal
Delete this message
Reply to this message
Autor: tito
Data:  
Para: dng
Assunto: 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