[Pdns-users] 1 sec delay before DNS-answer at pdns-recursor
Shamus Smith
smithshamus at yahoo.de
Tue Jun 25 22:26:41 UTC 2013
Hello all,
thanks for all your answers, but I'm still stuck. Below is the full output for dig for pdns and dnsmasq.
The query time is 2 ms for the first uncached request and 0 ms for pdns and dnsmasq. However, the
whole execution of the dig command takes over 1 second for pdns and below 30 ms for dnsmasq. The
same for nslookup.
For the second request trace just shows: 1 question answered from packet cache from 127.0.0.1
But it still takes more than 1 second.
- /etc/pdns-recursor/recursor.conf (default-config from package plus own forward-zone, removed comments)
forward-zones=.=8.8.8.8
setgid=pdns-recursor
setuid=pdns-recursor
- /etc/dnsmasq.conf (default-config from package, removed comments)
bogus-priv
cache-size=1500
domain-needed
no-hosts
- /etc/hosts
127.0.0.1 localhost localhost.localdomain localhost4 localhost4.localdomain4
::1 localhost localhost.localdomain localhost6 localhost6.localdomain6
/etc/nsswitch.conf was not modified and there is absolutely no load on the machine.
I do not have a LDAP user database, this is just a minimum install of CentOS 6.5.
Any ideas?
Thanks,
Shamus
# /etc/init.d/pdns-recursor start
pdns-recursor starten: [ OK ]
# time dig www.google.com @localhost
; <<>> DiG 9.8.2rc1-RedHat-9.8.2-0.17.rc1.el6_4.4 <<>> www.google.com @localhost
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 48006
;; flags: qr rd ra; QUERY: 1, ANSWER: 5, AUTHORITY: 0, ADDITIONAL: 0
;; QUESTION SECTION:
;www.google.com. IN A
;; ANSWER SECTION:
www.google.com. 174 IN A 173.194.35.176
www.google.com. 174 IN A 173.194.35.180
www.google.com. 174 IN A 173.194.35.177
www.google.com. 174 IN A 173.194.35.179
www.google.com. 174 IN A 173.194.35.178
;; Query time: 2 msec
;; SERVER: 127.0.0.1#53(127.0.0.1)
;; WHEN: Tue Jun 25 23:51:28 2013
;; MSG SIZE rcvd: 112
real 0m1.026s
user 0m0.011s
sys 0m0.014s
# time dig www.google.com @localhost
; <<>> DiG 9.8.2rc1-RedHat-9.8.2-0.17.rc1.el6_4.4 <<>> www.google.com @localhost
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 3613
;; flags: qr rd ra; QUERY: 1, ANSWER: 5, AUTHORITY: 0, ADDITIONAL: 0
;; QUESTION SECTION:
;www.google.com. IN A
;; ANSWER SECTION:
www.google.com. 84 IN A 173.194.35.176
www.google.com. 84 IN A 173.194.35.180
www.google.com. 84 IN A 173.194.35.177
www.google.com. 84 IN A 173.194.35.179
www.google.com. 84 IN A 173.194.35.178
;; Query time: 0 msec
;; SERVER: 127.0.0.1#53(127.0.0.1)
;; WHEN: Tue Jun 25 23:52:58 2013
;; MSG SIZE rcvd: 112
real 0m1.024s
user 0m0.005s
sys 0m0.019s
# /etc/init.d/pdns-recursor stop
pdns-recursor beenden: [ OK ]
# /etc/init.d/dnsmasq start
Starting dnsmasq: [ OK ]
# time dig www.google.com @localhost
; <<>> DiG 9.8.2rc1-RedHat-9.8.2-0.17.rc1.el6_4.4 <<>> www.google.com @localhost
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 6269
;; flags: qr rd ra; QUERY: 1, ANSWER: 5, AUTHORITY: 4, ADDITIONAL: 4
;; QUESTION SECTION:
;www.google.com. IN A
;; ANSWER SECTION:
www.google.com. 67 IN A 173.194.35.178
www.google.com. 67 IN A 173.194.35.179
www.google.com. 67 IN A 173.194.35.180
www.google.com. 67 IN A 173.194.35.176
www.google.com. 67 IN A 173.194.35.177
;; AUTHORITY SECTION:
google.com. 54608 IN NS ns1.google.com.
google.com. 54608 IN NS ns3.google.com.
google.com. 54608 IN NS ns2.google.com.
google.com. 54608 IN NS ns4.google.com.
;; ADDITIONAL SECTION:
ns1.google.com. 54882 IN A 216.239.32.10
ns2.google.com. 54882 IN A 216.239.34.10
ns3.google.com. 54882 IN A 216.239.36.10
ns4.google.com. 54882 IN A 216.239.38.10
;; Query time: 2 msec
;; SERVER: ::1#53(::1)
;; WHEN: Tue Jun 25 23:53:15 2013
;; MSG SIZE rcvd: 248
real 0m0.028s
user 0m0.008s
sys 0m0.019s
# time dig www.google.com @localhost
; <<>> DiG 9.8.2rc1-RedHat-9.8.2-0.17.rc1.el6_4.4 <<>> www.google.com @localhost
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 28137
;; flags: qr rd ra; QUERY: 1, ANSWER: 5, AUTHORITY: 0, ADDITIONAL: 0
;; QUESTION SECTION:
;www.google.com. IN A
;; ANSWER SECTION:
www.google.com. 65 IN A 173.194.35.177
www.google.com. 65 IN A 173.194.35.176
www.google.com. 65 IN A 173.194.35.180
www.google.com. 65 IN A 173.194.35.179
www.google.com. 65 IN A 173.194.35.178
;; Query time: 0 msec
;; SERVER: ::1#53(::1)
;; WHEN: Tue Jun 25 23:53:17 2013
;; MSG SIZE rcvd: 112
real 0m0.022s
user 0m0.007s
sys 0m0.016s
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.powerdns.com/pipermail/pdns-users/attachments/20130625/8d1b2488/attachment-0001.html>
More information about the Pdns-users
mailing list