So I want to have all IPv6 DNS lookups go to my PiHole directly using its address. I came across this older thread that says this is how to make it work by making a new file in jffs/scripts called dnsmasq.postconf
There were two different options of scripts to use. This one:
#!/bin/sh
CONFIG=$1
source /usr/sbin/helper.sh
pc_replace "dhcp-option=lan,option6:23,[::]" "dhcp-option=lan,option6:23,[ipv6 address of DNS server]" $CONFIG
Or this one:
#!/bin/sh
sed -i "s/dhcp-option=lan,option6:23,.*/dhcp-option=lan,option6:23,[YOUR PI-HOLE IPV6 ADDRESS]/" $1
So three questions.
1: which one is the right one?
2: do I still have to enable the IPv6 section on the router or do I leave that off?
3: do I enable or disable the router advertisement in the IPv6 section?
thx all!
There were two different options of scripts to use. This one:
#!/bin/sh
CONFIG=$1
source /usr/sbin/helper.sh
pc_replace "dhcp-option=lan,option6:23,[::]" "dhcp-option=lan,option6:23,[ipv6 address of DNS server]" $CONFIG
Or this one:
#!/bin/sh
sed -i "s/dhcp-option=lan,option6:23,.*/dhcp-option=lan,option6:23,[YOUR PI-HOLE IPV6 ADDRESS]/" $1
So three questions.
1: which one is the right one?
2: do I still have to enable the IPv6 section on the router or do I leave that off?
3: do I enable or disable the router advertisement in the IPv6 section?
thx all!
Last edited: