After installing wireguard and activating the
wg0 interface, I noticed that pihole was refusing to listen. Below I share how to fix
What’s more, netstat showed pihole-FTL listening on all interfaces
0.0.0.0:53 – but using dig I could only query via eth0 . Watch out for this while debugging.
Configure pihole for all interfaces, also restart
pihole -a -i all
Here’s how to test both interfaces
# 192.168.0.201 is the addr of eth0 $ dig @192.168.0.201 www.ucla.edu # 4.1 is the address of wg0 wireguard "server" $ dig @192.168.4.1 www.ucla.edu
How I found the solution
I scanned references to INTERFACE in webpage.sh . I got a little confused because the
-a help in cli seems to focus on “web” setup but seems to include dns options as well.