Am Sat, Oct 21, 2023 at 02:40:49PM -0400 schrieb Pocket:
> 
> On 10/21/23 14:32, Stefan Monnier wrote:
> > > > > I want NetworkManager to not over write /etc/resolv.conf
> > [...]
> > > My setup is that I was a dhcp server to give out IPs and DNS info.
> > > That way I can control those things without having to do so on every 
> > > system.
> > Populating `/etc/resolv.conf` from the DHCP-provided info is a useful
> > part of "control those things without having to do so on every system",
> > so I don't see why you "want NetworkManager to not over write
> > /etc/resolv.conf".
> > 
> > 
> >          Stefan
> > 
> I agree about that on most machines, but the machine in question has bind
> running so nameserver needs to be set to 127.0.0.1 and the domain to
> example.org in the resolv.conf file.
> 
> This is my problem in a nutshell

I am not 100% sure if I fully understood your setup. My system gets its
network settings via DHCP. I also run a nameserver on 127.0.0.1. My
external interface is bond0. I have the following configuration:

#v+
ris@lenovo ~> cat /etc/dhcp/dhclient.conf|grep -v "^#"

option rfc3442-classless-static-routes code 121 = array of unsigned
integer 8;

send host-name = gethostname();
request subnet-mask, broadcast-address, time-offset, routers,
domain-name, domain-name-servers, domain-search, host-name,
dhcp6.name-servers, dhcp6.domain-search, dhcp6.fqdn,
dhcp6.sntp-servers,
netbios-name-servers, netbios-scope,
interface-mtu,
rfc3442-classless-static-routes,
ntp-servers;

interface "bond0" {
        supersede domain-name-servers 127.0.0.1;
}
#v-

The last block prevents my local resolv.conf to be overwritten.
I am not sure if that measure could help in your setup.

Kind regards,
Christoph
-- 
Ist die Katze gesund
schmeckt sie dem Hund.

Attachment: signature.asc
Description: PGP signature

Reply via email to