Posted: Wed Dec 01, 2021 22:02 Post subject: dnsmasq with dhcp forwarder
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=192.168.1.254 # My router's IP
address=/mydomain.duckdns.org/192.168.1.45 #local address i want to use in preference to resolved address
Any clues or am I flogging a dead horse by having DHCP elsewhere?
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 .
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?