Ok, I start from show my configuration:<br><br>/etc/powerdns/pdns.conf:<br>allow-recursion=127.0.0.1<br>cache-ttl=60<br>config-dir=/etc/powerdns<br>daemon=yes<br>disable-axfr=yes<br>distributor-threads=10<br>guardian=yes<br>
lazy-recursion=yes<br>local-address=0.0.0.0<br>local-port=53<br>log-dns-details=no<br>log-failed-updates=no<br>max-tcp-connections=100<br>module-dir=/usr/lib/powerdns<br>negquery-cache-ttl=120<br>query-cache-ttl=60<br>receiver-threads=4<br>
recursive-cache-ttl=60<br>setgid=pdns<br>setuid=pdns<br>socket-dir=/var/run<br>version-string=powerdns<br>include=/etc/powerdns/pdns.d<br><br>/etc/powerdns/recursor.conf:<br>allow-from=<a href="http://127.0.0.0/8">127.0.0.0/8</a>, ::1/128, fe80::/10<br>
client-tcp-timeout=4<br>local-address=127.0.0.1<br>local-port=5300<br>max-cache-entries=1000000<br>max-negative-ttl=3600<br>max-tcp-clients=10240<br>quiet=yes<br>setgid=pdns<br>setuid=pdns<br>stack-size=400000<br><br>/etc/powerdns/pdns.d/pdns.local<br>
launch=gmysql<br>gmysql-dbname=...<br>gmysql-host=...<br>gmysql-password=...<br>gmysql-user=...<br>master=yes <br>slave=yes<br>recursor=<a href="http://127.0.0.1:5300">127.0.0.1:5300</a><br>allow-recursion=<a href="http://127.0.0.0/8">127.0.0.0/8</a>, ...<br>
allow-axfr-ips=...<br>disable-axfr=no<br>logfile=/var/log/dns.log<br>webserver=yes<br>webserver-address=...<br>webserver-password=...<br>webserver-port=8012<br><br>Variables from webserver when "Uptime: 30 minutes":<br>
corrupt-packets 9 Number of corrupt packets received<br>deferred-cache-inserts 130 Amount of cache inserts that were deferred because of maintenance<br>deferred-cache-lookup 76 Amount of cache lookups that were deferred because of maintenance<br>
latency 0 Average number of microseconds needed to answer a question<br>packetcache-hit 42862 <br>packetcache-miss 9157 <br>packetcache-size 10495 <br>qsize-q 0 Number of questions waiting for database attention<br>query-cache-hit 23712 Number of hits on the query cache<br>
query-cache-miss 17267 Number of misses on the query cache<br>recursing-answers 7737 Number of recursive answers sent out<br>recursing-questions 7737 Number of questions sent to recursor<br>servfail-packets 0 Number of times a server-failed packet was sent out<br>
tcp-answers 0 Number of answers sent out over TCP<br>tcp-queries 7 Number of TCP queries received<br>timedout-packets 118 Number of packets which weren't answered within timeout set<br>udp-answers 51921 Number of answers sent out over UDP<br>
udp-queries 13004 Number of UDP queries received<br>udp4-answers 44184 Number of IPv4 answers sent out over UDP<br>udp4-queries 52039 Number of IPv4UDP queries received<br>udp6-answers 0 Number of IPv6 answers sent out over UDP<br>
udp6-queries 0 Number of IPv6 UDP queries received<br><br>My server is:<br>Linux dns1 3.0.0-vs2.3.1-pre8-beng #1 SMP Wed Aug 3 10:13:46 BST 2011 x86_64 GNU/Linux<br>2 x Dual-Core AMD Opteron(tm) Processor 2220<br>8GB RAM<br>
Debian Squeeze<br><br>And now when i run ./namebench.py, my DNS have very slow response time:<br><br>Fastest individual response (in milliseconds):<br>----------------------------------------------<br><b>MyDNS DNS2 # 0.69880<br>
MyDNS DNS1 # 0.73814</b><br>...<br>Google Public DN ################################### 26.13997<br>OpenDNS-2 ####################################### 29.60110<br>OpenDNS ####################################### 29.62804<br>
UltraDNS-2 ############################################ 33.03885<br>DynGuide-2 ################################################## 37.79197<br>UltraDNS ################################################### 39.05392<br>
Google Public DN ##################################################### 40.62200<br><br>Mean response (in milliseconds):<br>--------------------------------<br>Google Public DN ## 52.20<br>Google Public DN ### 62.24<br>OpenDNS-2 ###### 163.05<br>
OpenDNS ######## 214.32<br>UltraDNS-2 ######## 216.79<br>DynGuide ########## 269.92<br>DynGuide-2 ########## 276.10<br>Neostrade/TPnet ############## 379.00<br><b>MyDNS DNS1 ############### 419.96<br>
MyDNS DNS2 ################ 425.80</b><br>UltraDNS ##################################################### 1499.95<br><br>Can I change something else in order to speed up response time?<br><br><br>© 2012