<div dir="ltr"><div><div><div><div><div><div><div><div><div>HI friends:<br></div>     I am using dnsmasq as the local dns cache. Everything is OK but we found a very strange problem for one DNS records : <a href="http://api.m.duoku.com">api.m.duoku.com</a><br>
<br></div>     It is ok to resolv this "<a href="http://api.m.duoku.com">api.m.duoku.com</a>" as dnsmasq starts up. But after the cache expired(the TTL is 3600), dnsmasq do not fetch new record result from upstream servers but return a NXDOMAIN result:<br>
<br></div><div>     For now, I have only found problem with his DNS record. It works fine for other DNS records!<br></div><div><br><br>--------------------------------------------------<br># dig <a href="http://api.m.duoku.com">api.m.duoku.com</a><br>
<br>; <<>> DiG 9.3.6-P1-RedHat-9.3.6-20.P1.el5 <<>> <a href="http://api.m.duoku.com">api.m.duoku.com</a><br>;; global options:  printcmd<br>;; Got answer:<br>;; ->>HEADER<<- opcode: QUERY, status: NXDOMAIN, id: 33100<br>
;; flags: qr rd ra; QUERY: 1, ANSWER: 0, AUTHORITY: 0, ADDITIONAL: 0<br><br>;; QUESTION SECTION:<br>;<a href="http://api.m.duoku.com">api.m.duoku.com</a>.        IN    A<br><br>;; Query time: 0 msec<br>;; SERVER: 127.0.0.1#53(127.0.0.1)<br>
;; WHEN: Thu Feb 27 12:39:21 2014<br>;; MSG SIZE  rcvd: 33<br><br>---------------------------------------------------------<br><br></div>After I restarted dnsmasq using /etc/init.d/dnsmasq, it returned to normal.<br></div>
But after the cache expired, I need to restart again!<br><br></div>The upstream servers are running Unbound, and they are OK to resolv "<a href="http://api.m.duoku.com">api.m.duoku.com</a>", and I never have to restart Unbound for the problelm!<br>
</div><br></div>So I highly suspend it is the problem of dnsmasq!<br><br><br>------------------------------------------------------------------<br><br>$ cat /etc/resolv.dnsmasq.conf <br>nameserver 120.132.147.28 <br>nameserver 58.83.143.47 <br>
nameserver 216.12.201.200 <br>nameserver 159.253.130.212 <br>nameserver 208.43.166.72 <br>nameserver 103.6.152.201 <br><br>------------------------------------------------------<br><br># cat /etc/dnsmasq.conf | grep -v '^#' | sed -e '/^$/d'<br>
resolv-file=/etc/resolv.dnsmasq.conf<br>listen-address=127.0.0.1<br>no-dhcp-interface=127.0.0.1<br>bind-interfaces<br>no-hosts<br> <br>cache-size=1000<br>log-queries<br>conf-dir=/etc/dnsmasq.d<br><br>----------------------------------------------------<br>
<br></div># uname -a<br>Linux <a href="http://xxxxxxx.boyaa.com">xxxxxxx.boyaa.com</a> 2.6.18-348.1.1.el5 #1 SMP Tue Jan 22 16:19:19 EST 2013 x86_64 x86_64 x86_64 GNU/Linux<br><br><br><br>--------------------------------------------<br>
<br># cat /etc/redhat-release <br>CentOS release 5.8 (Final) Tikanga<br><br># rpm -qa | grep dnsmasq<br>dnsmasq-2.45-1.1.el5_3<br><br>-----------------------------------------------------<br><br></div>So anyone can help this problem? <br>
<br>Thank you very much!<br><br></div>