cname in zone files problem (???)

didds didds2 at excite.com
Thu Jul 6 17:14:51 UTC 2006


bind 9.2.4
Red Hat Enterprise Linux ES release 3 (Taroon Update 7)


Hi - I have a zone file - "stage-access.co.uk" -  as such:

$TTL 2h
;
; Origin added to names not ending
; in a dot: stage-access.co.uk
;
@               IN      SOA     dns0.skyrock.co.uk.
hostmaster.skyrock.co.uk. (
                        2006070603 ; serial
                        2h ; refresh
                        1h ; retry
                        1w ; expire
                        1h) ; default_ttl

;
; Name & Mail servers (The name '@' is implied)
;
                        IN      NS              dns0.skyrock.co.uk.
                        IN      NS              dns1.skyrock.co.uk.
                        IN      MX      10      mail.stageaccess.com.

;Alias
stage-access.co.uk.     IN      CNAME           stageaccess.com.
mail                    IN      CNAME           mail.stageaccess.com.
www                     IN      CNAME           www.stageaccess.com.


when named is restarted the following is seen in /var/log/messages

Jul  6 17:17:17 0181-0256-wb01 named[29441]: dns_master_load:
stage-access.co.uk:21: stage-access.co.uk: CNAME and other data
Jul  6 17:17:17 0181-0256-wb01 named[29441]: zone
stage-access.co.uk/IN: loading master file stage-access.co.uk: CNAME
and other data



However....  trying to use this configuration...

$ nslookup
> server localhost
Default server: localhost
Address: 127.0.0.1#53
> www.stageaccess.com
Server:         localhost
Address:        127.0.0.1#53

Non-authoritative answer:
Name:   www.stageaccess.com
Address: 213.219.58.12
> www.stage-access.co.uk
Server:         localhost
Address:        127.0.0.1#53

** server can't find www.stage-access.co.uk: SERVFAIL
> exit

so the CNAME of www.stageaccess.com can be resolved - but not
www.stage-access.co.uk

I'm still pretty green at all this, so apologies if I have made some
galring error...  but what am I doing wrong?  (Well, I have actually
inherited the above but don;t have the knwledge to sort it out!)

cheers

ian



More information about the bind-users mailing list