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 created a little app on Heroku, and am trying to follow their directions for setting up a custom domain on Godaddy. I've created a CNAME for www, but I can't create one for @ (or per their instructions.

I keep getting the error:

ERROR - DNS Rules Violation, A record of a different type exists for this hostname, CNAME 
cannot be created for @

No matter which combination of dots and @'s I use. Anyone know how to add that cname with just the root domain and not the www?

share|improve this question
up vote 11 down vote accepted

I've set up a domain with godaddy using heroku so see if this helps.

First you set up 3 A records with the hostname @ to point to the heroku ips:,, and (check their docs to make sure they are the same when you do this).

Then you add just one CNAME record if you want www and have it point to @.

If you use the total DNS control feature your screen will end up looking something like this:

alt text

You also need to use the heroku addon for DNS and configure it:

heroku addons:add custom_domains:basic
heroku domains:add
heroku domains:add

Doing the above should get you set up with their free basic DNS service.

share|improve this answer
@djangofan: No, Heroku don't use mongrel. Also, the relationship between the numbers of frontend webservers and app servers is tenuous at best. – womble Mar 18 '12 at 4:42
These settings are old and incorrect. You can no longer use these 3 IP addresses with Heroku. – wuputah Jun 5 '14 at 0:02

You can't -- a CNAME can't be used if a resource record has any other records on it (which a root name has -- NS records and an SOA, at a minimum). What you'll have to do is put an A record on the name, pointing to the IP address of the name that heroku suggest you put the CNAME on.

share|improve this answer the way, you happen to know of any videos out there that explain DNS, CNAMEs and such out there? – btelles Jan 6 '10 at 22:13
What is this obsession with learning from videos? They're hard to make right, hard to watch, hard to follow along... get a good book, like the O'Reilly BIND book, or RFC1034/RFC1035. – womble Jan 7 '10 at 0:11

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.