What's new
  • SNBForums Code of Conduct

    SNBForums is a community for everyone, no matter what their level of experience.

    Please be tolerant and patient of others, especially newcomers. We are all here to share and learn!

    The rules are simple: Be patient, be nice, be helpful or be gone!

Wireguard server not using DNS settings that are defined in WAN settings

GuardYaGrill

Occasional Visitor
Evening,

Ever since i set up my two PiHoles, one behind Proxmox and the other on Bare-Metal, I've been trying to get my Wireguard server that is hosted on my Asus RT-AX86U to make use of my DNS-Sinkholes, every forum topic i visit people say to just edit the DNS = field on the client to point to my LAN devices hosting the resolvers (Like this post for example) but that never seem to work for me and i can't figure out why. I should note that i do have a VPN Director rule for 10.6.0.0/24 to forward all queries through my VPN provider however, disabling this rule doesn't seem to make any difference.

Is there no way to force 10.6.0.0 followed by some CIDR to use a specific DNS? DNS Director only seems to accept MAC addresses so that doesnt work here, if i have to SSH into the router and run a command i'll do it, just got no idea on the command nor options i would need.

If anyone has suggestions it would be greatly appreciated! Thanks for reading

example client config & Images in case they're useful:

Code:
[Interface]

PrivateKey = REDACTED

Address = 10.6.0.2/32

DNS = 192.168.1.199, 192.168.1.14


[Peer]

PublicKey = REDACTED

AllowedIPs = 0.0.0.0/0,192.168.1.0/24

Endpoint = my.ddns.com:51820

PersistentKeepalive = 25


1762392199476.png

1762392342276.png


1762392456849.png
 
every forum topic i visit people say to just edit the DNS = field on the client to point to my LAN devices hosting the resolvers (Like this post for example) but that never seem to work for me
If I remember correctly, the router does not do anything about dns for Wireguard servers clients.

if the client are not using your set wireguard dns its a client issue. Have you turned off dns privacy in client console?

If its just not resolving anything its likely a pihole issue.

What type of issue do you have?

What client type, Windows? What Wireguard program?
 
If I remember correctly, the router does not do anything about dns for Wireguard servers clients.
if the client are not using your set wireguard dns its a client issue. Have you turned off dns privacy in client console?
I suspect it’s defaulting to my ISP’s provided DNS but really got no way to prove it, both my LAN & WAN settings on my router are configured to use my
PiHole’s, my Piholes recognize queries from all LAN devices.
If its just not resolving anything its likely a pihole issue.

What type of issue do you have?

What client type, Windows? What Wireguard program?
I’m using the Wireguard client for iOS/iPadOS and I do get internet access connected to the Wireguard sever and I can access LAN devices however, PiHole doesn’t get queries from the Wireguard connected clients therefore I’m not benefiting from the many ad/malware blocklists I have.
 

Latest threads

Support SNBForums w/ Amazon

If you'd like to support SNBForums, just use this link and buy anything on Amazon. Thanks!

Sign Up For SNBForums Daily Digest

Get an update of what's new every day delivered to your mailbox. Sign up here!

Members online

Back
Top