how to allow domain.com as well as www.domain.com ?
Brett_Frankenberger at NOTES.UP.COM
Brett_Frankenberger at NOTES.UP.COM
Wed Jun 16 14:06:58 UTC 1999
>hostname.domain.com. IN A <IP Address>
>www.domain.com. IN CNAME hostname.domain.com.
>domain.com. IN CNAME <IP address> (as suggested below)
Two problems with this:
(1) CNAME's point to other domain names, not to IP Addresses, so the CNAME
should be:
domain.com. IN CNAME hostname.domain.com
But ...
(2) You can't have a CNAME on a zone name, because (except for the DNSSEC
stuff) a CNAME requires that the CNAME be the only record for a domain
name, and a zone name also needs a SOA record. In other words, you can't
have:
XXXXXXX IN CNAME YYYYYYY
and
XXXXXXX IN <anything else (except some DNSSEC stuff)>
But in you case, you need the "anything else" because you have to have a
domain.com IN SOA ,..
record,
So to get what you want, you'll need to either use an A record on
domain.com
domain.com IN A <IP Address>
More information about the bind-users
mailing list