[Pdns-users] pdns not forwarding query to root server
Muhammad Yousuf Khan
sirtcp at gmail.com
Mon May 14 07:41:03 UTC 2012
i am using debian 6.0.4 and PowerDNS as a caching server in to
facilitate Squid cache.
in the begining things were working fine (about 2 monts or so) but
lately PowerDNS stops working. so i investigated the issue. which
shows that powerDNS is not farwording query to the root server. below
is the detail.
TCPdump on 127.0.0.1 port 53
---------------------------------------------
12:35:54.262430 IP localhost.52891 > localhost.domain: 52500+ A? geo.tv. (24)
12:35:54.262790 IP localhost.domain > localhost.52891: 52500 1/2/2 A
194.28.157.30 (116)
12:36:12.700524 IP localhost.39642 > localhost.domain: 25331+ A?
drupbal.org. (29)
12:36:12.700701 IP localhost.domain > localhost.39642: 25331 ServFail 0/0/0 (29)
tcpdump on eth1 (local interface) port 53
------------------------------------------------------
no sigh of any packet detection on port 53. however it suppose to send
dns query to the root DNS server which is my local server 10.51.100.8
netstat -nulp and ntlp
---------------------------------
netstat shows that pdns is listening on port 53
tcp 0 0 127.0.0.1:53 0.0.0.0:*
LISTEN 878/pdnsd
udp 0 0 127.0.0.1:53 0.0.0.0:*
878/pdnsd
pdnsd debug mode
- 05/14 12:08:16| All threads started successfully.
- 05/14 12:08:16| Server status thread exiting.
1 05/14 12:08:35| Received query.
1 05/14 12:08:35| Questions are:
1 05/14 12:08:35| qc=IN (1), qt=A (1), query="drupal.org."
1 05/14 12:08:35| Starting cached resolve for: drupal.org., query A
1 05/14 12:08:35| Trying name servers.
1 05/14 12:08:35| No server is marked up and allowed for this domain.
1 05/14 12:08:35| Outbound msg len 28, tc=0, rc="server failed"
1 05/14 12:08:35| Answering to: 127.0.0.1, source address: 127.0.0.1
pdnsd.conf
=========
global {
perm_cache=2048;
cache_dir="/var/cache/pdnsd";
run_as="pdnsd";
server_ip = 127.0.0.1; // Use eth0 here if you want to allow other
// machines on your network to query pdnsd.
status_ctl = on;
paranoid=on;
// query_method=tcp_udp; // pdnsd must be compiled with tcp
// query support for this to work.
min_ttl=50m; // Retain cached entries at least 15 minutes.
max_ttl=1w; // One week.
timeout=10; // Global timeout option (10 seconds).
// Don't enable if you don't recurse yourself, can lead to problems
// delegation_only="com","net";
}
/* with status_ctl=on and resolvconf installed, this will work out from the box
this is the recommended setup for mobile machines */
server {
label="resolvconf";
}
/*
// This section is meant for resolving from root servers.
server {
label = "root-servers";
root_server=on;
ip = 10.51.100.8
, 198.41.0.4
, 192.228.79.201
, 192.33.4.12
, 128.8.10.90
, 192.203.230.10
, 192.5.5.241
, 192.112.36.4
More information about the Pdns-users
mailing list