cname to external host

Make sure you added the trailing . more then likely there was a dns error.

You can check /var/log/messages after doing a rndc reload or /sbin/service named restart
 
I used a cname for the www

Code:
 www.mydomain.com. CNAME theirdomain.com.

and an A record for the other

Code:
mydomain.com. A 1.2.3.4


I wanted to use a CNAME for both, but apparently it isn't allowed. I don't know why. Band-aid fix.
 
Last edited:
You can't have a CNAME if there are any other references to the domain name. So if you had a CNAME record for exmaple.com, then you couldn't have any other records (MX, NS, even the main SOA record). It's a limitation of the DNS design.

Using an A record creates a problem if the IP# ever changes since you have no control over it.

More common is to create the CNAME for www and use a redirect (we use .htaccess) from example.com to www.example.com.

Jeff
 
Back
Top