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

Simailar to this question, I want to configure DNS hosted with GoDaddy to have a subdomain on a different IP from the root site. The issue I am having is that GoDaddy uses a GUI and does not grant direct access to bind (that I can see).

When I enter an name for the A record (i.e. Server2), the ui allows it. But when I try to point the subdomain's CNAME record to Server2, it tells me its an invalid host name.

What am I missing here?

share|improve this question
up vote 4 down vote accepted

You only need an A record in order to host a subdomain. A CNAME record is basically an Alias. For example, www records are usually CNAME records to the root domain, as they are generally the same page.

GoDaddy offers total DNS control and definately has the capability to do this.

Even in bind, to host a subdomain at IP different than your main site, the records would look something like this:

; Main Site
@  IN A

; Blog
blog IN A
share|improve this answer
@Kyle - I have defined the second server as a A record called Server2. When I attempt to point the CNAME to the new A record, Total DNS control says its not a valid host – Rob Allen Oct 18 '09 at 17:19
I just logged into my GoDaddy Total DNS control panel and tested this. Creating the CNAME takes a hostname you want for the CNAME (this is just the subdomain portion, like 'blog') and a fully qualified domain name it should point to (''). Although real DNS records should end in a period (''), GoDaddy wants just an FQDN, which it will add a trailing period to. Worked like a charm! Good luck. – Kyle Smith Oct 18 '09 at 18:49
@kyle, that worked for me as well. – Rob Allen Oct 19 '09 at 1:32

If you really want to create a subdomain, with servers named like "", as opposed to "", "" etc (which are just regular host names in your domain, not subdomain, and have been covered by the first two answers), then you need:

  • Set up DNS servers for ""
  • In, add NS records pointing to these newly set up servers:

subdomain IN NS
subdomain IN NS

  • If, in step 2, you specified server names in (like the first server above), then you need to create glue records:

ns1.subdomain IN A

share|improve this answer

You need to make sure that you are pointing it to the correctly written A-record.

www =>

Notice that there is a dot after or else it won't work.

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.