<div dir="ltr">Hello-<div>I am using dnsmasq inside dd-wrt, I am a recent build of DD-WRT with dnsmasq v2.72.  I am having problems getting server domain forwarding to work, in particular I can tcpdump and watch my request come in on the LAN port, the request from dnsmasq head out the WAN port to the upstream server, the answer comes back from the upstream server, then dnsmasq returns an empty result to me.</div><div><br></div><div>Cmdline:</div><div>dnsmasq -u root -g root --conf-file=/tmp/dnsmasq.conf<br></div><div><br></div><div>Conf:</div><div><div>interface=br0</div><div>resolv-file=/tmp/resolv.dnsmasq</div><div>all-servers</div><div>strict-order</div><div>domain=zonk.some.domain</div><div>dhcp-leasefile=/tmp/dnsmasq.leases</div><div>dhcp-lease-max=50</div><div>dhcp-option=lan,3,10.129.0.1</div><div>dhcp-range=lan,10.129.0.100,10.129.0.150,255.255.255.0,1440m</div><div>stop-dns-rebind</div><div>log-queries</div><div># some.domain</div><div>server=/some.domain/<a href="http://10.128.0.1">10.128.0.1</a></div><div>rev-server=<a href="http://10.128.0.0/24,10.128.0.1">10.128.0.0/24,10.128.0.1</a></div><div># dc.some.domain</div><div>server=/dc.some.domain/<a href="http://10.128.64.1">10.128.64.1</a></div><div>rev-server=<a href="http://10.128.64.0/24,10.128.64.1">10.128.64.0/24,10.128.64.1</a></div></div><div><br></div><div>And here is the tcpdump interchange:</div><div><br></div><div><div>Me -> dnsmasq</div><div>23:32:32.301531 IP (tos 0x0, ttl 64, id 49653, offset 0, flags [none], proto UDP (17), length 86)</div><div>    10.129.0.138.65190 > 10.129.0.1.53: [udp sum ok] 8601+ A? dc-terminal.dc.some.domain. (58)</div><div>23:32:32.301567 IP (tos 0x0, ttl 64, id 49653, offset 0, flags [none], proto UDP (17), length 86)</div><div>    10.129.0.138.65190 > 10.129.0.1.53: [udp sum ok] 8601+ A? dc-terminal.dc.some.domain. (58)</div><div><br></div><div>dnsmasq -> upstream device</div><div>23:32:32.302130 IP (tos 0x0, ttl 64, id 12450, offset 0, flags [DF], proto UDP (17), length 86)</div><div>    10.128.0.119.46851 > 10.128.64.1.53: [udp sum ok] 58951+ A? dc-terminal.dc.some.domain. (58)</div><div><br></div><div>upstream device -> dnsmasq</div><div>23:32:32.317469 ethertype IPv4, IP (tos 0x0, ttl 63, id 58992, offset 0, flags [DF], proto UDP (17), length 102)</div><div>    10.128.64.1.53 > 10.128.0.119.46851: [udp sum ok] 58951* q: A? dc-terminal.dc.some.domain. 1/0/0 dc-terminal.dc.some.domain. [0s] A 10.128.64.3 (74)</div><div>23:32:32.317505 IP (tos 0x0, ttl 63, id 58992, offset 0, flags [DF], proto UDP (17), length 102)</div><div>    10.128.64.1.53 > 10.128.0.119.46851: [udp sum ok] 58951* q: A? dc-terminal.dc.some.domain. 1/0/0 dc-terminal.dc.some.domain. [0s] A 10.128.64.3 (74)</div><div><br></div><div>dnsmasq -> Me (with an empty answer payload)</div><div>23:32:32.317777 IP (tos 0x0, ttl 64, id 65207, offset 0, flags [DF], proto UDP (17), length 86)</div><div>    10.129.0.1.53 > 10.129.0.138.65190: [bad udp cksum 0x15e0 -> 0x50d2!] 8601* q: A? dc-terminal.dc.some.domain. 0/0/0 (58)</div><div>23:32:32.317804 IP (tos 0x0, ttl 64, id 65207, offset 0, flags [DF], proto UDP (17), length 86)</div><div>    10.129.0.1.53 > 10.129.0.138.65190: [udp sum ok] 8601* q: A? dc-terminal.dc.some.domain. 0/0/0 (58)</div></div><div><br></div><div>Any help or suggestions on troubleshooting would be greatly appreciated.</div><div><br></div><div>Thanks,</div><div>David</div><div><br></div></div>