CNAME
Mark.Andrews at nominum.com
Mark.Andrews at nominum.com
Mon Aug 7 14:27:44 UTC 2000
>
> Hi all
>
> I wish to use CNAME in my zone files to point to my main virtual web
> server however it appears that I can not use a CNAME for the base domain
> name as I get the following error,
>
> Aug 7 15:21:57 au3 named[541]: reloading nameserver
> Aug 7 15:21:57 au3 named[541]: ghocktest.com.au has CNAME and other
> data (invalid)
> Aug 7 15:21:57 au3 named[541]: db.ghocktest.com.au:10:ghocktest.com.au:
> CNAME and OTHER data error
> Aug 7 15:21:57 au3 named[541]: ghocktest.com.au has CNAME and other
> data (invalid)
> Aug 7 15:21:57 au3 named[541]: db.ghocktest.com.au:8:ghocktest.com.au:
> CNAME and OTHER data error
> Aug 7 15:21:57 au3 named[541]: ghocktest.com.au has CNAME and other
> data (invalid)
> Aug 7 15:21:57 au3 named[541]: db.ghocktest.com.au:7:ghocktest.com.au:
> CNAME and OTHER data error
> Aug 7 15:21:57 au3 named[541]: master zone "ghocktest.com.au" (IN)
> rejected due to errors (serial 2000080708)
> Aug 7 15:21:57 au3 named[541]: Forwarding source address is
> [0.0.0.0].1056
> Aug 7 15:21:57 au3 named[541]: Ready to answer queries.
>
> The zone file is as follows,
>
> $TTL 86400
> @ IN SOA au1.domainnames.com.
> ghock.domainnames.com.au. (
> 2000080708 ; Serial
> 10800 ; Refresh
> 3600 ; Retry
> 604800 ; Expire
> 86400 ) ; Minimum TTL
> IN NS au1.domainnames.com.
> IN NS au2.domainnames.com.
> IN MX 10 au1.domainnames.com.
> IN CNAME sitegeneral.com.
> www IN CNAME sitegeneral.com.
>
> If I change the first CNAME to an A record with the IP address of
> sitegeneral.com it all works fine but I don't wish to 'hard code' the IP
> address.
> Is there any correct way to acheive this?
Yes. Use a A record.
In the long term the answer should be use a SRV record, however a
RFC needs to be written to describe how to use SRV records with
http so that Netscape, Microsoft etc. know what to do in their
browsers. Note this is not a straight forward thing to do.
The first url below would be easy to convert to use SRV, the second
however requires some thought, as does the third:
e.g.
<URL:http://example.com/>
<URL:http://example.com:400/>
<URL:http://example.com:80/>
Mark
>
> Thanks in advance,
> Glenn Hocking
>
>
>
--
Mark Andrews, Nominum Inc.
1 Seymour St., Dundas Valley, NSW 2117, Australia
PHONE: +61 2 9871 4742 INTERNET: Mark.Andrews at nominum.com
More information about the bind-users
mailing list