July 25th, 2011, 10:40 AM
Using different NS records for a subdomain
I'm working with a .ca domain, say "whatever.ca"
Is it possible to have "whatever.ca" point to:
While "sub.whatever.ca" point to a different set of NS records?
Also, how do I query a subdomain's NS using dig?
Would the following query work?
dig ns sub.whatever.ca
July 25th, 2011, 04:43 PM
Any domain can have any NS records essentially. Example.com could use testdomain.com's name servers as long as they are authoritative. If you are doing a sub domain, I would recommend making another zone file for it rather than use the $ORIGIN function in a zone. But that's entirely up to you.
In dig you can query for NS records by doing what you typed. If you want to query a particular server, you specify it using the @ symbol. Like so:
The order doesn't matter in most cases, dig is a pretty lenient tool.
dig @b.iana-servers.net. example.com. NS
July 26th, 2011, 08:18 AM
Perfect...thanks very much for the quick response!