What's new

Local DNS with Wireguard

maxsteel

Regular Contributor
Hello, I'm trying to use my local router DNS "192.168.2.1." in client WG configuration. Unfortunately , I'm unable to have a connection if I change the DNS. However, with 3rd party DNS such as 1.1.1.1 and 8.8.8.8 the client works fine.

I tried to add the local DNS in allowed IP and had the same result. Any idea what could I be missing?

Thanks,
 

eibgrad

Senior Member
I've not worked w/ WG before. But if it's like other VPNs, if you want access to the local DNS server by your VPN clients, you have to add the VPN's network interface to DNSMasq before it will listen for DNS queries from anything other than the default network (br0).

Code:
interface=tun*
IOW, in the above example, I've told DNSMasq to listen for DNS queries from the OpenVPN client's network interface(s). I have no idea the naming convention used by WG, but the idea is the same.
 

Latest threads

Sign Up For SNBForums Daily Digest

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