Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I am quite inexperienced with DNS, so this might be simple.

Our main domain is hosted at provider A. Now, we would like to host at some other provider B - they have the domain set up with them, so I figure that I can do this by somehow adding the nameserver at provider B to the DNS configuration at provider A.

The current DNS config is as follows:

How can I add the new subdomain to this configuration?

Note: maybe shared hosting provider is a more accurate term. Provider B is - I know their nameserver adresses, just not sure how to add them to my original setup.

share|improve this question

closed as off-topic by Jenny D, kasperd, mdpc, Ward, HBruijn Feb 7 at 18:55

This question appears to be off-topic. The users who voted to close gave this specific reason:

  • "Questions should demonstrate reasonable business information technology management practices. Questions that relate to unsupported hardware or software platforms or unmaintained environments may not be suitable for Server Fault - see the help center." – Jenny D, mdpc, Ward, HBruijn
If this question can be reworded to fit the rules in the help center, please edit the question.

I'll bite... What is a "web hotel"? – John Gardeniers Jun 18 '10 at 10:48
Maybe he means like Habbo Hotel shudders – Tom O'Connor Jun 18 '10 at 10:50
@John: maybe shared hosting provider is a more accurate term. Provider B is - I know their nameserver adresses, just not sure how to add them to my original setup. – Martin Wiboe Jun 18 '10 at 10:50
it might be an idea to edit your title. @Tom, I hadn't heard of Habbo Hotel before either, although I've just looked it up and don't intend to go any further with that. ;) – John Gardeniers Jun 18 '10 at 10:59
up vote 3 down vote accepted

If you own and have the DNS for housed on one server, you can delegate resolution for to another DNS server if you like as such:

; zone
@ IN A
www IN A
foo IN NS
foo IN NS

Then, the other DNS server (at ns1/ can have an authoritative zone for Requests for would be delegated to the other provider:

; zone
@ IN A

With this setup, will resolve to, will resolve to and will resolve to

Of course, I'm using non-routing IP addresses here for example purposes and you would replace them with whatever IP addresses were necessary.

Hopefully this answers your question, but if I've misunderstood what you're trying to do let me know in the comments.

share|improve this answer

What you are proposing won't work. You need to set up all the DNS entries on the same DNS servers, those that are authorative for the domain. That could be one at each hosting company but each needs to have matching entries because any DNS request could go to either one. So, while you could use both hosts it would be most inadvisable to do so, not least of which because it is far more work than it's worth to maintain.

share|improve this answer

What you want to accomplish can be done but your proposed direction for doing it is off track. Like John Gardeniers said the DNS records need to be the same ... both providers can host dns if they want but the records all need to match.

What you can do is setup the records so that the hosting for and/or is done at one place and is at another place. You need to understand the distinction between dns hosting and domain hosting however. Either place or both or your registrar or a third party can host dns. Dns is just a system of looking up names and matching them server addresses. Individual resources (in your case subdomains) can have their own unique records for where the hosting can be found.

Does that make sense conceptually? If the main domain is setup and working correction it should be as simple as adding another A record for your subdomain pointing the second provider that hosts it similar to this: IN A

Obviously you will need the IP where the subdomain is hosted and the server at that IP will need to know how to handle requests when they come in with for that subdomain.

share|improve this answer

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