CNAME

Vitor Colaco vitor.colaco at esdata.pt
Mon Aug 7 11:12:41 UTC 2000


Glenn Hocking wrote:
> 
> 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?

Is there an A ref. to sitegeneral.com. ? You have to or else it points
to <void>

-- 
Vitor Colaco		| "Larry Flynt was right. You all suck!"
Analista de Suporte	|
E.S. Data Informatica	|	- Homer Simpson



More information about the bind-users mailing list