misc@,

How can I ignore DNS settings which machine gets on a specified interfaces
via DHCPv6 / RA / SLAAC?

DHCP for IPv4 has the way via dhcpleased.conf:

interface cnmac3 {
    ignore dns
}

but I can't find any way for IPv6 and it works like this:

gw$ cat /etc/resolv.conf  
nameserver 127.0.0.1
lookup file bind
gw$ doas ifconfig cnmac3 inet6 autoconf
gw$ cat /etc/resolv.conf                
nameserver 2a01:598:7ff:0:10:74:210:211 # resolvd: cnmac3
nameserver 2a01:598:7ff:0:10:74:210:210 # resolvd: cnmac3
nameserver 127.0.0.1
lookup file bind
gw$ doas ifconfig cnmac3 -inet6         
gw$ cat /etc/resolv.conf        
nameserver 127.0.0.1
lookup file bind
gw$


-- 
wbr, Kirill

Reply via email to