The FreeBSD Diary

The FreeBSD Diary (TM)

Providing practical examples since 1998

If you buy from Amazon USA, please support us by using this link.
[ HOME | TOPICS | INDEX | WEB RESOURCES | BOOKS | CONTRIBUTE | SEARCH | FEEDBACK | FAQ | FORUMS ]

Things look quiet here. But I've been doing a lot of blogging at dan.langille.org because I prefer WordPress now. Not all my posts there are FreeBSD related. I am in the midst of migrating The FreeBSD Diary over to WordPress (and you can read about that here). Once the migration is completed, I'll move the FreeBSD posts into the new FreeBSD Diary website.

ndc - how to see lots of DNS information 1 January 1999
Share
Need more help on this topic? Click here
This article has no comments
Show me similar articles
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:

su-2.02# ndc dumpdb
Dumping Database
su-2.02# ndc stats
Dumping Statistics

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 [198.41.0.4]
   20179 IN NS  NS1.PLANET-THREE.COM. ;Cr=addtnl [198.41.0.4]
   20179 IN NS  NS2.PLANET-THREE.COM. ;Cr=addtnl [198.41.0.4]
   20179 IN NS  NS0.FLIRBLE.ORG.      ;Cr=addtnl [198.41.0.4]
   20179 IN NS  NS.GBNET.NET.         ;Cr=addtnl [198.41.0.4]

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.

su-2.02# nslookup
Default Server: localhost
Address: 127.0.0.1

> server NS0.PLANET-THREE.COM
Default Server: NS0.PLANET-THREE.COM
Address: 194.207.51.234

> freebsddiary.cx
Server: NS0.PLANET-THREE.COM
Address: 194.207.51.234

*** NS0.PLANET-THREE.COM can't find freebsddiary.cx: Non-existent host/domain
>

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.

Share
Need more help on this topic? Click here
This article has no comments
Show me similar articles