Sign up ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

I have that is hosted on an Azure VM instance called

I need to configure DNS so that both and get mapped to the same host. I'm using GoDaddy as registrar.

Currently GoDaddy offers me to create an empty (@) A record, so that if I ping and resolve its VIP address I can store it in the A record.

Unfortunately, if the VIP changes and I forget to re-ping I get unreachable, and that's normal.

When I try to move that @ record to the CNAME section so it best points to the VM hostname, I get the following error:

A record of a different type exists for the hostname @, could not create CNAME

This occurs both if I delete the A record and write CNAME, and if there is no @ record in the A section.

How can one set a @ CNAME record in a GoDaddy managed domain?

share|improve this question

2 Answers 2

up vote 10 down vote accepted

In short, you can't make the @ record a CNAME without deleting all other resource records for @, and you can't do that since some (like the NS records) are required for proper DNS functionality. This is one reason why providers such as Heroku tell you not to use naked domain names.

You will need a host to perform the HTTP redirection from to for you, to which you will point A (and AAAA) record for @.

If your DNS is hosted with GoDaddy, then they have a free service that will do this for you. In your GoDaddy domain manager, look on the left hand side for "Forwarding" and click "Manage". Then set it to forward to and update your DNS to support the change. You should leave the Advanced Options at their defaults.

GoDaddy Domain Forwarding Control

share|improve this answer
Would Domain Forwarding also effect subdomains? I want to redirect all users to to Would enabling domain forwarding do that? – Ut xD Nov 11 '14 at 7:39

One option is a DNSimple ALIAS record or a DNSMadeEasy ANAME record. Both of these are non-standard records that essentially work by resolving the name of the host behind the scenes and returning the resulting A records in response DNS queries for the naked domain.

Here's a write up on how the ALIAS record works at DNSimple:

Here's info on how the DNSMadeEasy ANAME works:

Disclaimer: I run DNSimple.

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.