The dreaded CNAME

Danny Mayer mayer at gis.net
Wed Aug 29 02:23:43 UTC 2001


At 09:12 PM 8/28/01, Digest wrote:

>What is the proper method for setting up a basic domain as a CNAME
>record in bind 8.2.4?
>
>Prior to bind 8.2.3, I was using something similar to the following:
>
>foo.com.   IN   SOA  ns.mydomain.net. hostmaster.mydomain.net. (
>                 99072719 86400 7200 3600000 28800 )
>foo.com.        IN      NS      ns.mydomain.net.
>foo.com.        IN      NS      ns2.mydomain.net.
>foo.com.        IN      CNAME   bar.com.
>
>
>However, since 8.2.3, I can no longer get away with this.
>
>What is the proper manner for pointing foo.com to bar.com, as an alias
>or CNAME?
>
>
>
>(And before you ask why I don't just use A records--In my situation, it
>is not an option.)


If you own both zones and run the nameservers for both on the same box, you
can use the same zone file and use non-FQDN's in the zone file.  Then in
named.conf just specify the different domains but point to the same file.

         Danny



More information about the bind-users mailing list