[Dnsmasq-discuss] Dnsmasq cache does not fetch new value after cache expired for some record

hu jason jasonhu2088 at gmail.com
Thu Feb 27 06:43:44 UTC 2014


HI friends:
     I am using dnsmasq as the local dns cache. Everything is OK but we
found a very strange problem for one DNS records : api.m.duoku.com

     It is ok to resolv this "api.m.duoku.com" 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:

     For now, I have only found problem with his DNS record. It works fine
for other DNS records!


--------------------------------------------------
# dig api.m.duoku.com

; <<>> DiG 9.3.6-P1-RedHat-9.3.6-20.P1.el5 <<>> api.m.duoku.com
;; global options:  printcmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NXDOMAIN, id: 33100
;; flags: qr rd ra; QUERY: 1, ANSWER: 0, AUTHORITY: 0, ADDITIONAL: 0

;; QUESTION SECTION:
;api.m.duoku.com.        IN    A

;; Query time: 0 msec
;; SERVER: 127.0.0.1#53(127.0.0.1)
;; WHEN: Thu Feb 27 12:39:21 2014
;; MSG SIZE  rcvd: 33

---------------------------------------------------------

After I restarted dnsmasq using /etc/init.d/dnsmasq, it returned to normal.
But after the cache expired, I need to restart again!

The upstream servers are running Unbound, and they are OK to resolv "
api.m.duoku.com", and I never have to restart Unbound for the problelm!

So I highly suspend it is the problem of dnsmasq!


------------------------------------------------------------------

$ cat /etc/resolv.dnsmasq.conf
nameserver 120.132.147.28
nameserver 58.83.143.47
nameserver 216.12.201.200
nameserver 159.253.130.212
nameserver 208.43.166.72
nameserver 103.6.152.201

------------------------------------------------------

# cat /etc/dnsmasq.conf | grep -v '^#' | sed -e '/^$/d'
resolv-file=/etc/resolv.dnsmasq.conf
listen-address=127.0.0.1
no-dhcp-interface=127.0.0.1
bind-interfaces
no-hosts

cache-size=1000
log-queries
conf-dir=/etc/dnsmasq.d

----------------------------------------------------

# uname -a
Linux xxxxxxx.boyaa.com 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



--------------------------------------------

# cat /etc/redhat-release
CentOS release 5.8 (Final) Tikanga

# rpm -qa | grep dnsmasq
dnsmasq-2.45-1.1.el5_3

-----------------------------------------------------

So anyone can help this problem?

Thank you very much!
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.thekelleys.org.uk/pipermail/dnsmasq-discuss/attachments/20140227/aafda8fc/attachment.html>


More information about the Dnsmasq-discuss mailing list