<br><br>On Tuesday, June 25, 2013, Shamus Smith  wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div style="font-size:12pt;font-family:times new roman,new york,times,serif">
<div>Hello all,<br><br>thanks for all your answers, but I'm still stuck. Below is the full output for dig for pdns and dnsmasq.</div><div style="font-style:normal;font-size:16px;background-color:transparent;font-family:times new roman,new york,times,serif">
The query time is 2 ms for the first uncached request and 0 ms for pdns and dnsmasq. However, the</div><div style="font-style:normal;font-size:16px;background-color:transparent;font-family:times new roman,new york,times,serif">
whole execution of the dig command takes over 1 second for pdns and below 30 ms for dnsmasq. The<br>same for nslookup.<br><br>For the second request trace just shows: 1 question answered from packet cache from 127.0.0.1<br>
But it still takes more than 1 second.<br><br>-
 /etc/pdns-recursor/recursor.conf (default-config from package plus own forward-zone, removed comments)<br>forward-zones=.=8.8.8.8<br>setgid=pdns-recursor<br>setuid=pdns-recursor<br><br>- /etc/dnsmasq.conf (default-config from package, removed comments)<br>
bogus-priv<br>cache-size=1500<br>domain-needed<br>no-hosts<br><br>- /etc/hosts<br>127.0.0.1   localhost localhost.localdomain localhost4 localhost4.localdomain4<br>::1         localhost localhost.localdomain localhost6 localhost6.localdomain6<br>
<br>/etc/nsswitch.conf was not modified and there is absolutely no load on the machine.<br>I do not have a LDAP user database, this is just a minimum install of CentOS 6.5.<br><br>Any ideas?</div></div></div></blockquote>
<div><br></div><div><br></div><div>Someone else mentioned use  <font><span style="line-height:normal;background-color:rgba(255,255,255,0)">forward-zones-recurse instead. Try that. There's obviously an issue between your OS resolver and pdns-recursor. That well be the cause.<span></span></span></font></div>
<div><font><span style="line-height:normal;background-color:rgba(255,255,255,0)"><br></span></font></div><div><font><span style="line-height:normal;background-color:rgba(255,255,255,0)"><br></span></font></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div><div style="font-size:12pt;font-family:times new roman,new york,times,serif"><div style="font-style:normal;font-size:16px;background-color:transparent;font-family:times new roman,new york,times,serif"><br><br>Thanks,<br>
Shamus<br><br><br></div></div></div></blockquote><div><br></div><div> </div><br><br>-- <br><br>"Genius might be described as a supreme capacity for getting its possessors<br>into trouble of all kinds."<br>-- Samuel Butler<br>
<br>