dnsmasq for wireguard peers

Post new topic   Reply to topic    DD-WRT Forum Index -> General Questions
Author Message
wenzhuo
DD-WRT User


Joined: 22 Apr 2011
Posts: 191

PostPosted: Sun Mar 12, 2023 0:05    Post subject: dnsmasq for wireguard peers Reply with quote
If you want to let wireguard peers use the local dnsmasq service (DNS servers via tunnel: router IP), adding the router IP to the "listen-address" option, as what is being done now, is not sufficient to enable dnsmasq to answer requests for non-authoritative dns lookups. Another dnsmasq option "no-dhcp-interface=oet1" is designed for this scenario.
Sponsor
egc
DD-WRT Guru


Joined: 18 Mar 2014
Posts: 12836
Location: Netherlands

PostPosted: Sun Mar 12, 2023 9:13    Post subject: Reply with quote
It is working for me without a problem, from my laptop connected to my home WireGuard server:
Quote:
C:\Windows\System32>nslookup google.com
Server: EA8500.home6
Address: 192.168.6.1

Non-authoritative answer:
Name: google.com
Addresses: 2a00:1450:400e:80f::200e
142.250.179.206

_________________
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
wenzhuo
DD-WRT User


Joined: 22 Apr 2011
Posts: 191

PostPosted: Sun Mar 12, 2023 12:09    Post subject: Reply with quote
Well, I assign a different subnet to the wireguard interface than LAN.
wenzhuo
DD-WRT User


Joined: 22 Apr 2011
Posts: 191

PostPosted: Sun Mar 12, 2023 13:18    Post subject: Reply with quote
I couldn't reproduce the problem after removing the additional dnsmasq option "no-dhcp-interface=oet1". Shocked It was confirmed by two persons. We probably ran into other issues with dnsmasq, and a service restart fixed it, not the additional option.
Display posts from previous:    Page 1 of 1
Post new topic   Reply to topic    DD-WRT Forum Index -> General Questions 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 can attach files in this forum
You can download files in this forum