CNAME for domainname.com.

news at teknologia.com news at teknologia.com
Wed Sep 6 07:40:43 UTC 2006


When we started to use bind many years ago we were told that it
necessary to use a A-record for <<domainname.com>> but for
<<www.domainname.com>> it is possible to use a CNAME.

I.e., a typically zonefile here:
===============================
$TTL    14400
@       IN      SOA     domainname.com.       registry.latitud.net (
                        2006090501 ; Serial
                        14400 ; Refresh
                        900 ; Retry
                        604800 ; Expire
                        3600 ) ; Negative Cache TTL
@       IN      NS      dns.webhosting.se.
@       IN      MX      10      mail.webhosting.se..
;
domainname.com.    IN      A             X.X.X.X
www      IN      CNAME   www.webhosting.se.
===============================

I suppose it must be possible to change the A-record to a CNAME like
this:
domainname.com.    IN      CNAME       www.webhosting.se.
but I am not sure.

Someone who knows the rules for this?

Best regards
Martin Rådbo
Teknologia



More information about the bind-users mailing list