#1
  1. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jul 2011
    Posts
    2
    Rep Power
    0

    Using different NS records for a subdomain


    Hey there

    I'm working with a .ca domain, say "whatever.ca"
    Is it possible to have "whatever.ca" point to:

    Code:
    ns1.testing.com
    ns2.testing.com
    While "sub.whatever.ca" point to a different set of NS records?

    Code:
    ns1.newtest.com
    ns2.newtest.com
    Also, how do I query a subdomain's NS using dig?
    Would the following query work?

    Code:
    dig ns sub.whatever.ca
    Thanks
  2. #2
  3. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Nov 2010
    Location
    Florida
    Posts
    248
    Rep Power
    5
    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:

    Code:
    dig @b.iana-servers.net. example.com. NS
    The order doesn't matter in most cases, dig is a pretty lenient tool.
  4. #3
  5. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jul 2011
    Posts
    2
    Rep Power
    0
    Perfect...thanks very much for the quick response!

IMN logo majestic logo threadwatch logo seochat tools logo