[SOLVED] Wireguard and "Connection-specific DNS suffix&

Post new topic   Reply to topic    DD-WRT Forum Index -> Advanced Networking
Author Message
bzwvyrd
DD-WRT Novice


Joined: 02 Dec 2023
Posts: 2

PostPosted: Sat Dec 02, 2023 11:13    Post subject: [SOLVED] Wireguard and "Connection-specific DNS suffix& Reply with quote
TLDR: DNS suffix from modem showing up on router clients, but no DNS leak.

I have a Modem, and a DD-WRT Router on r54248 with Wireguard and a killswitch, and a freshly installed Windows Computer connected to Router. Modem has a router admin panel at something like modemadmin.com.

On computer, "ipconfig" before I first connect to Router shows no suffix. After connecting, it shows output like this.

Code:

Wireless LAN adapter Wi-Fi:
Connection-specific DNS Suffix . : modemadmin.com


I've tested on several websites and don't seem to have an actual DNS leak, but I do not want computers connected to the router to know about modemadmin.com at all. Wireguard on Computer showed that requests were being made to subdomains of modemadmin.com, but I think the router blocked them. I don't want this DNS suffixing.

I've tried with Archer A7 and NETGEAR R6700 on the same build and still have this issue.

I looked in the Wireguard client guide and VPN and DNS guide and am still confused.

No PBR, all traffic should be going through Wireguard. I also have a killswitch firewall command that is probably redundant.
Code:
Ignore WAN DNS: Enabled

Static DNS 1: 10.2.0.1
Static DNS 2: 10.2.0.1
Static DNS 3: 10.2.0.1

Use dnsmasq for DNS: Enabled
Recursive DNS Resolving (Unbound): Disabled
Forced DNS Redirection: Enabled
Forced DNS Redirection DoT: Enabled

Enable dnsmasq: Enable
Query DNS in Strict Order: Disable

DNS servers via Tunnel: 10.2.0.1
Kill Switch: Enabled


Last edited by bzwvyrd on Sat Dec 02, 2023 12:02; edited 1 time in total
Sponsor
egc
DD-WRT Guru


Joined: 18 Mar 2014
Posts: 12923
Location: Netherlands

PostPosted: Sat Dec 02, 2023 11:50    Post subject: Reply with quote
I do not think this has anything to do with WireGuard but instead is a DNS issue. so please correct the title of this thread.

First do not use DNS servers in Static DNS 1,2 and 3 which are not publicly available, that will prevent you from getting current time which might prevent the WG tunnel from starting up (or if you use encrypted DN getting DNs etc.)

If you specified a DNS tunnel in the WG interface than that will be used.

See the VPN and DNS guide.
WireGuard guides are a sticky in this forum.

Just set your own LAN domain on Services page.
Choose:
Used Domain: LAN & WLAN
Lan Domain: mydomainname

Reboot your router and when the router is rebooted reboot your LAN clients

_________________
Routers:Netgear R7000, R6400v1, R6400v2, EA6900 (XvortexCFE), E2000, E1200v1, WRT54GS v1.
Install guide R6400v2, R6700v3,XR300:https://forum.dd-wrt.com/phpBB2/viewtopic.php?t=316399
Install guide R7800/XR500: https://forum.dd-wrt.com/phpBB2/viewtopic.php?t=320614
Forum Guide Lines (important read):https://forum.dd-wrt.com/phpBB2/viewtopic.php?t=324087


Last edited by egc on Sat Dec 02, 2023 12:07; edited 1 time in total
bzwvyrd
DD-WRT Novice


Joined: 02 Dec 2023
Posts: 2

PostPosted: Sat Dec 02, 2023 12:00    Post subject: Reply with quote
egc wrote:
I do not think this has anything to do with WireGuard but instead is a DNS issue. so please correct the title of this thread.

First do not use DNS servers in Static DNS 1,2 and 3 which are not publicly available, that will prevent you from getting current time which might prevent the WG tunnel from starting up (or if you use encrypted DN getting DNs etc.)

If you specified a DNS tunnel in the WG interface than that will be used.

See the VPN and DNS guide.
WireGuard guides are a sticky in this forum.

Just set your own LAN domain on Services page.
Choose:
Used Domain: LAN & WLAN
Lan Domain: mydomainname


Thank you very much egc, sorry for my ignorance.
egc
DD-WRT Guru


Joined: 18 Mar 2014
Posts: 12923
Location: Netherlands

PostPosted: Sat Dec 02, 2023 12:09    Post subject: Reply with quote
No problem we are here to help Smile
_________________
Routers:Netgear R7000, R6400v1, R6400v2, EA6900 (XvortexCFE), E2000, E1200v1, WRT54GS v1.
Install guide R6400v2, R6700v3,XR300:https://forum.dd-wrt.com/phpBB2/viewtopic.php?t=316399
Install guide R7800/XR500: https://forum.dd-wrt.com/phpBB2/viewtopic.php?t=320614
Forum Guide Lines (important read):https://forum.dd-wrt.com/phpBB2/viewtopic.php?t=324087
Display posts from previous:    Page 1 of 1
Post new topic   Reply to topic    DD-WRT Forum Index -> Advanced Networking All times are GMT

Navigation

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum