CNAME
Glenn Hocking
ghock at publishmedia.com
Mon Aug 7 05:29:29 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?
Thanks in advance,
Glenn Hocking
More information about the bind-users
mailing list