Hi, Maybe i am wrong and do not understand this right, but wat should the “ignore dns” option do when used in the dhcpleased .conf config file? Here @xs4all our IPTV network on a separate vlan also gets an ip address and the dhcp offer also sends a dns server which should be ignored. I also thought that with the “ignore dns” option, this dns server was blocked, but that is not what the option does?
Regards, Arnoud > On 30 Oct 2021, at 21:00, Sebastian Benoit <benoit-li...@fb12.de> wrote: > > Z?? Loff(zel...@zeloff.org) on 2021.10.29 18:30:29 +0100: >>> On Fri, Oct 29, 2021 at 03:37:56PM +0300, Samarul Meu wrote: >>> Hello to you all! >>> >>> Prior to 7.0 I was using this line in /etc/dhclient.conf >>> supersede domain-name-servers 127.0.0.1; >>> so that I do not get the DNS from the ISP provider. >>> >>> I am using unbound to resolve my queries. With the new changes I can not >>> get the same functionality. >>> >>> I tried to add this in /etc/dhcpleased.conf >>> interface urtwn0 ignore dns >>> where urtwn0 is my interface or disable resolvd. >>> >>> If resolvd is on I get my ISP DNS server, if not when unbound starts >>> resolvd adds the ISP DNS server to resolv.conf. >>> >>> Can you please tell me what am I doing wrong and how can I have only >>> 127.0.0.1 on the resolv.conf file? >>> >>> Thank you! >> >> This works for me: >> >> >> /etc/hostname.em0: >> >> inet autoconf >> >> >> /etc/resolv.conf: >> >> nameserver 127.0.0.1 >> >> >> /etc/dhcpleased.conf: >> >> interface em0 { >> ignore dns >> } > > > If you never intend to use other nameservers on this system, you can also > deactivate resolvd: > > rcctl stop resolvd > rcctl disable resolvd > > and remove dhcpleased.conf again. > >