I am running DD-WRT v24-sp2 (08/07/10) mega – build 14896 on a Linksys WRT610Nv2 and use openvpn to do Site-to-Site routed VPN. There is a problem with recent builds of dd-wrt that breaks DNS between the sites. It is due to the “stop-dns-rebind” option in the “/tmp/dnsmasq.conf” file.

So if you have used this guide:

Example: localDomain remoteDomain

Have accomplished:
1) Ping the remote router
2) Ping a remote client
ping 10.0.51.x
3) Can get a DNS answer from the remote DNS server
dig @ remoteClient.remoteDomain
4) From your local client system dns does not work for remote clients
dig remoteClient.remoteDomain
dig @ remoteClient.remoteDomain

The next step is to:
1) ssh root@
2) cat /tmp/dnsmasq.conf
3) If you see the option “stop-dns-rebind” this is rejecting the remote dns servers. This is why lookups do not work

Fix it:
1) Log into DD-WRT web interface
2) Administration->Commands
3) Edit startup
4) At the end insert

# This is a hack for dnsmasq because it does not implement rebind-domain-ok yet
 sed -i 's/stop-dns-rebind/# stop-dns-rebind/g' /tmp/dnsmasq.conf
 sleep 5
 killall dnsmasq
 sleep 5
 dnsmasq --conf-file=/tmp/dnsmasq.conf

5) Save Startup
6) Reboot router
7) dig remoteClient.remoteDomain works
8) Profit