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 } --