How do I point domain.com to domain1.com using a CNAME record in DNS?
I am trying to point domain.com to domain1.com using a CNAME record in the DNS zone file. I understand the A record needs to be placed there, as when I remove it and sync the DNS servers I get resolving issues. However, the www, test, and dev CNAME entries I put in the zone file resolve just fine.
How can I go about doing this?
To add, I am not looking to set up CNAME records for subdomains, I’m looking to set the CNAME record up for the main domain to forward to another domain via CNAME.
2 Responses to “How do I point domain.com to domain1.com using a CNAME record in DNS?”



You have to make sure, you have set an full qualified domain name ending with a dot.
E.g.
Within SOA Record for domain example.yahoo.com. you have a IN A record for test1 like
test1 IN A 10.0.0.1
and you have some cname records
test2 CNAME test1
test3 CNAME example.yahoo.com
test4 CNAME example.yahoo.com.
then
test2 will refer to test1.example.yahoo.com.
test3 will refer to example.yahoo.com.example.yahoo.com.
and finally
test4 will refer to example.yahoo.com.
The dot at then end of a domainname is important and makes the difference between a relative and an absolut path.
http://en.wikipedia.org/wiki/Common_cold
http://www.merck.com/mmhe/sec17/ch198/ch198b.html
http://www.commoncold.org/special1.htm
Report this comment
You cannot. If a domain name has a CNAME record that can be the *only* record that domain name has. You’re asking about the “domain.com”, not any subdomains like “test.domain.com”.
Since “domain.com” is delegated by the com. servers, it cannot have a CNAME record. Why? Because it must have, at a minimum, an SOA record. And you cannot have both an SOA record and a CNAME record for the same domain name.
http://en.wikipedia.org/wiki/Common_cold
http://www.merck.com/mmhe/sec17/ch198/ch198b.html
http://www.commoncold.org/special1.htm
Report this comment