[Pdns-users] Getting started with pdns
Gerald Britton
gerald.britton at gmail.com
Thu Jan 18 17:30:53 UTC 2007
OK -- tried as root but no joy:
$ sudo pdns_control counts
Fatal error: Unable to connect to remote
'/var/run/pdns.controlsocket': Connection refused
Oh, I get it, only pdsn_recursor is running! So I used rec_control to
dump the cache, which only has the basic entries. Then I did a bunch
of host commands (cnn.com, powerdns.com, etc) to try to get some more
in there, but when I was done, nothing had been added to the cache,
which now is:
c.root-servers.net. 3593987 IN A 192.33.4.12
d.root-servers.net. 3593987 IN A 128.8.10.90
e.root-servers.net. 3593987 IN A 192.203.230.10
f.root-servers.net. 3593987 IN A 192.5.5.241
h.root-servers.net. 3593987 IN A 128.63.2.53
j.root-servers.net. 3593987 IN A 192.58.128.30
k.root-servers.net. 3593987 IN A 193.0.14.129
l.root-servers.net. 3593987 IN A 198.32.64.12
m.root-servers.net. 3593987 IN A 202.12.27.33
a.root-servers.net. 3593987 IN A 198.41.0.4
b.root-servers.net. 3593987 IN A 192.228.79.201
i.root-servers.net. 3593987 IN A 192.36.148.17
A.GTLD-SERVERS.NET. 167322 IN A 192.5.6.30
A.GTLD-SERVERS.NET. 167322 IN AAAA 2001:503:a83e::2:30
B.GTLD-SERVERS.NET. 167322 IN A 192.33.14.30
B.GTLD-SERVERS.NET. 167322 IN AAAA 2001:503:231d::2:30
C.GTLD-SERVERS.NET. 167322 IN A 192.26.92.30
com. 167322 IN NS a.gtld-servers.net.
com. 167322 IN NS b.gtld-servers.net.
com. 167322 IN NS c.gtld-servers.net.
com. 167322 IN NS d.gtld-servers.net.
com. 167322 IN NS e.gtld-servers.net.
com. 167322 IN NS f.gtld-servers.net.
com. 167322 IN NS g.gtld-servers.net.
com. 167322 IN NS h.gtld-servers.net.
com. 167322 IN NS i.gtld-servers.net.
com. 167322 IN NS j.gtld-servers.net.
com. 167322 IN NS k.gtld-servers.net.
com. 167322 IN NS l.gtld-servers.net.
com. 167322 IN NS m.gtld-servers.net.
E.GTLD-SERVERS.NET. 167322 IN A 192.12.94.30
G.GTLD-SERVERS.NET. 167322 IN A 192.42.93.30
H.GTLD-SERVERS.NET. 167322 IN A 192.54.112.30
I.GTLD-SERVERS.NET. 167322 IN A 192.43.172.30
J.GTLD-SERVERS.NET. 167322 IN A 192.48.79.30
K.GTLD-SERVERS.NET. 167322 IN A 192.52.178.30
L.GTLD-SERVERS.NET. 167322 IN A 192.41.162.30
. 3593987 IN NS a.root-servers.net.
. 3593987 IN NS b.root-servers.net.
. 3593987 IN NS c.root-servers.net.
. 3593987 IN NS d.root-servers.net.
. 3593987 IN NS e.root-servers.net.
. 3593987 IN NS f.root-servers.net.
. 3593987 IN NS g.root-servers.net.
. 3593987 IN NS h.root-servers.net.
. 3593987 IN NS i.root-servers.net.
. 3593987 IN NS j.root-servers.net.
. 3593987 IN NS k.root-servers.net.
. 3593987 IN NS l.root-servers.net.
. 3593987 IN NS m.root-servers.net.
g.root-servers.net. 3593987 IN A 192.112.36.4
M.GTLD-SERVERS.NET. 167322 IN A 192.55.83.30
F.GTLD-SERVERS.NET. 167322 IN A 192.35.51.30
GTLD-SERVERS.NET. 167322 IN NS a2.nstld.com.
GTLD-SERVERS.NET. 167322 IN NS c2.nstld.com.
GTLD-SERVERS.NET. 167322 IN NS d2.nstld.com.
GTLD-SERVERS.NET. 167322 IN NS e2.nstld.com.
GTLD-SERVERS.NET. 167322 IN NS f2.nstld.com.
GTLD-SERVERS.NET. 167322 IN NS g2.nstld.com.
GTLD-SERVERS.NET. 167322 IN NS h2.nstld.com.
GTLD-SERVERS.NET. 167322 IN NS l2.nstld.com.
NET. 167322 IN NS a.gtld-servers.net.
NET. 167322 IN NS b.gtld-servers.net.
NET. 167322 IN NS c.gtld-servers.net.
NET. 167322 IN NS d.gtld-servers.net.
NET. 167322 IN NS e.gtld-servers.net.
NET. 167322 IN NS f.gtld-servers.net.
NET. 167322 IN NS g.gtld-servers.net.
NET. 167322 IN NS h.gtld-servers.net.
NET. 167322 IN NS i.gtld-servers.net.
NET. 167322 IN NS j.gtld-servers.net.
NET. 167322 IN NS k.gtld-servers.net.
NET. 167322 IN NS l.gtld-servers.net.
NET. 167322 IN NS m.gtld-servers.net.
D.GTLD-SERVERS.NET. 167322 IN A 192.31.80.30
a.iana-servers.net. 167323 IN A 192.0.34.43
c.iana-servers.net. 167323 IN A 139.91.1.10
iana-servers.net. 167323 IN NS a.iana-servers.net.
iana-servers.net. 167323 IN NS b.iana-servers.net.
iana-servers.net. 167323 IN NS c.iana-servers.net.
iana-servers.net. 167323 IN NS sec3.apnic.net.
sec3.apnic.net. 167323 IN A 202.12.28.140
sec3.apnic.net. 167323 IN AAAA 2001:dc0:1:0:4777::140
www.example.com. 167323 IN A 192.0.34.166
example.com. 80923 IN SOA dns1.icann.org. hostmaster.icann.org.
2005111500 7200 3600 1209600 86400
example.com. 167323 IN NS a.iana-servers.net.
example.com. 167323 IN NS b.iana-servers.net.
b.iana-servers.net. 167323 IN A 193.0.0.236
Also, got some stats:
$ sudo rec_control get cache-hits
0
$ sudo rec_control get cache-misses
3
$ sudo rec_control get cache-entries
41
So it seems as if nothing is being added to the cache at the moment.
What am I missing?
On 1/18/07, bert hubert <bert.hubert at netherlabs.nl> wrote:
> On Thu, Jan 18, 2007 at 12:11:57PM -0500, Gerald Britton wrote:
> > Hmm -- more trouble here:
>
> Try as root. Also, you need rec_control for the pdns_recursor. Do you
> actually need authoritative domains? You can run the recursor standalone
> without an authoritative frontend.
>
> Just starting pdns_recursor w/o parameters should do the trick.
>
> --
> http://www.PowerDNS.com Open source, database driven DNS Software
> http://netherlabs.nl Open and Closed source services
>
More information about the Pdns-users
mailing list