Friday, October 29, 2021

Re: Dhcp client configuration in 7.0

‐‐‐‐‐‐‐ Original Message ‐‐‐‐‐‐‐

On Friday, October 29th, 2021 at 2:57 PM, Samarul Meu <samarul.meu@gmail.com> wrote:

> On Fri, Oct 29, 2021 at 8:30 PM Zé Loff zeloff@zeloff.org wrote:
>
> > This works for me:
> >
> > /etc/hostname.em0:
> >
> > inet autoconf
> >
> >
> > /etc/resolv.conf:
> >
> > nameserver 127.0.0.1
> >
> >
> > /etc/dhcpleased.conf:
> >
> > interface em0 {
> > ignore dns
> > }
> >
>
> My dhcpleased.conf is similar (interface urtwn0 ignore dns), but it does
>
> not seem to work. resolvd just overwrites the resolv.conf with the ISP DNS.
>
> If I disable resolvd and I leave only nameserver 127.0.0.1 the unbound
>
> works as expected.
>
> Now, my question is when ignore dns from dhcpleased.conf is considered? The
>
> man page states "Ignore nameservers from leases on this interface" but
>
> maybe I am not reading it correctly?

Make sure to include the curly braces around 'ignore dns'. I upgraded my
router yesterday, and it works as documented. However, you'll need to reboot
or restart dhcpleased for the change to take effect (at least that was the
case for me). Then you can manually remove the nameserver entries added by
resolvd.

No comments:

Post a Comment