Take the 2-minute tour ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

I'm starting playing with nameservers. Currently I have:

  • A domain: mydomain.com
  • Access for writing the whois ns records.
  • Access for writing DNS records at the domain hosting provider. nsX.foo.com
  • A shared (hostC) hosting which cPanel writes in the nameserver of nsX.bar.com

Basically I want the following structure:

hostA.mydomain.com -> hostA
hostB.mydomain.com -> hostB
hostC.mydomain.com -> hostC
mydomain.com       -> hostC
*.mydomain.com     -> hostC

Whats the correct way of configuring this?

By the way I have configured the following records

hostA.mydomain.com IN A [IP_OF_hostA]     (at foo.com nameservers)
hostB.mydomain.com IN A [IP_OF_hostB]     (at foo.com nameserver)

But now I dont know how to specify that @.mydomain.com and *.mydomain.com are resolved by the ns1.bar.com and ns2.bar.com, and it is hard to try with the delays after editing the records.

share|improve this question

1 Answer 1

Try this:

mydomain.com. IN NS nsX.foo.com.
hostA.mydomain.com. IN A [IP_OF_hostA]
hostB.mydomain.com. IN A [IP_OF_hostB]
*.mydomain.com. IN NS nsX.bar.com.
share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.