:: Re: [DNG] resolv.conf
Top Page
Delete this message
Reply to this message
Author: list-devuan
Date:  
To: dng
Subject: Re: [DNG] resolv.conf
tito via Dng wrote on 2022-05-09 04:54:
>
> Hi,
> two usual culprits are network-manager and/or dhclient.
> For network manager add in /etc/NetworkManager/NetworkManager.conf [main] section;
>
> dns=none
>
> for dhclient create a file "/etc/dhcp/dhclient-enter-hooks.d/nodnsupdate"
> with content:
>
> #!/bin/sh
> make_resolv_conf(){
>          :
> }

>
>
> Hope this helps.
>
> Ciao,
> Tito


According to the man page dhclient-script(8), a file (of any name) in
/etc/dhcp/dhclient-enter-hooks.d is invoked inline (so no shebang
needed) if and only if it is executable. I use a one line file containing:

     make_resolv_conf(){ :; }


Then chmod +x the file.

Cheers,
P.