dnsmasq with dhcp forwarder

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

Joined: 31 May 2017
Posts: 3

PostPosted: Wed Dec 01, 2021 22:02    Post subject: dnsmasq with dhcp forwarder Reply with quote
I have all my DHCP on a windows server box (I'm loathed to change it as there's a lot of static mappings)

I'm running dd-wrt build 47695 on my Asus RT-AC68U C1

I'm trying to get dnsmasq running for DNS only to allow me to set some local dns entries.

Since I have dhcp set to forwarding rather than a local server, I don't get the tick box to use Dnsmasq for DNS.
dnsmasq is configured as follows, but just does not respond to dns queries. (If i switch on smartdns, I can get that working)

listen-address= # My router's IP
server= #Google
address=/mydomain.duckdns.org/ #local address i want to use in preference to resolved address

Any clues or am I flogging a dead horse by having DHCP elsewhere?


Joined: 18 Mar 2014
Posts: 10127
Location: Netherlands

PostPosted: Wed Dec 01, 2021 22:11    Post subject: Reply with quote
Thread transferred to the Advanced Networking forum.

See forum guidelines with pointers where to post etc.

Dhcp forwarder is usually not the best choice.
Consider setting up as a WAP:

You can simply set dhcp off and keep dns on

Routers:Netgear R7800, R6400v1, R6400v2, Linksys EA8500, EA6900 (XvortexCFE), E2000 (converted WRT320N), 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

Joined: 24 May 2016
Posts: 1291

PostPosted: Wed Dec 01, 2021 23:57    Post subject: Reply with quote
I was going to ask if your dhcp server is referring to the router for dns, because dhcp can specify what to use for dns...

So if you are forwarding, then that information is coming from a different location

Joined: 08 May 2018
Posts: 12875
Location: Texas, USA

PostPosted: Thu Dec 02, 2021 3:50    Post subject: Reply with quote
1) You don't need to use dhcp forwarder (and shouldn't).
2) Dnsmasq will normally listen on the router's IP by default.
3) If you are going to specify dns servers, you have the option of using the 3 static entries or no-resolv directive if you are going to use server= lines; to ensure that you don't use your ISP dns servers, set ignore wan dns.
4) You should be able to configure your windows dhcp server to hand out (dns server and) router/gateway IP address(es). I doubt anything has changed since NT4 server.

"Life is but a fleeting moment, a vapor that vanishes quickly; All is vanity"
Pogo - A minimal level of ability is expected and needed...
At some point, people just get plain tired of this place.
Because they are tired of bottom-feeders and the same old hat.

Linux User #377467 counter.li.org / linuxcounter.net

Joined: 21 May 2017
Posts: 186

PostPosted: Fri Dec 03, 2021 7:37    Post subject: Reply with quote
I quote, "dnsmasq is a dns server" .
The check box you mean is for the dhcp server. Dhcp forwarder will still work but you must improve dns and dhcp at the network level. Routing dhcp is trickier without the server. It's not too tricky though. I use the "lan domain" option. *. yourdomian.com .
DD-WRT Novice

Joined: 31 May 2017
Posts: 3

PostPosted: Fri Dec 03, 2021 21:13    Post subject: Reply with quote
Thanks all.

Once you prompted me that I don't need the DNS forwarder any more (it came from a time when I was trying to set up a guest network) - I was able to configure dnsmasq and it sprang into life (using nslookup to specify the server)

Once I'm happy it's doing what I expect, I'll update the windows DHCP server to supply the router IP as DNS.

The Server= line was intended to provide dnsmasq with a relay point - is this wrong/not necessary? Will it relay to the DNS root servers by default?

Much appreciated
Display posts from previous:    Page 1 of 1
Post new topic   Reply to topic    DD-WRT Forum Index -> Advanced Networking All times are GMT


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