The FreeBSD Diary
Providing practical examples since 1998If you buy from Amazon USA, please support us by using this link.
ndc - how to see lots of DNS information 1 January 1999
When I was adding some new virtual domains, I had some
trouble figuring out why only I could see the websites. One of the tools I used to
solve this problem was ndc.
I issued two commands:
I found the output in /var/tmp. The files created were named.stats and named_dump.db.
The information I was trying to obtain was the name server for the CX domain. I found this in the /var/tmp/named_dump.db file. Here's what I was looking for:
CX 20179 IN NS NS0.PLANET-THREE.COM. ;Cr=addtnl [184.108.40.206] 20179 IN NS NS1.PLANET-THREE.COM. ;Cr=addtnl [220.127.116.11] 20179 IN NS NS2.PLANET-THREE.COM. ;Cr=addtnl [18.104.22.168] 20179 IN NS NS0.FLIRBLE.ORG. ;Cr=addtnl [22.214.171.124] 20179 IN NS NS.GBNET.NET. ;Cr=addtnl [126.96.36.199]
The above lists the name servers for the CX domain. These are the servers which are your first line of reference when a .cx domain is being resolved. In my case, I was looking for freebsddiary.cx. Here's how I resolved that name using the above information.
This tells me that the name server knows nothing about my domain. Which probably means the DNS servers haven't been updated yet. I've only just registered the domains. And .cx updates the servers twice daily.
You might want to see http://www.niccx.cx/faqs.html.