Does "@" in CNAME record not work?
Gary Wardell
gwardell at gwsystems.co.il
Fri Jul 13 01:36:42 UTC 2001
> >
> > mydomain.com SOA ...
> > mydomain.com NS ns1.mydomain.com
> > mydomain.com A 192.168.0.4 ; must be an A record
> > ns1.mydomain.com A 192.168.0.4 ; must be an A record
> > www.mydomain.com CNAME mydomain.com
>
>
> Mark,
>
> Doesn't that bring me back to the problem pointed out in the Bind/DNS
> book (3rd edition, pgs. 64-65)?
>
> Jim
>
Why not do it this why:
zone "mydomain.com" IN {type master; file "master/db.mydomain.com";};
Where db.mydomain.com is:
@ IN SOA ...
;
;nameservers
IN NS ns1.mydomain.com. ; <--- The period is needed here
IN NS ns2.other-secondary.oth. ; <----- and here
;
IN A 192.168.0.4
www IN A 192.168.0.4
ns1 IN A 192.168.0.4
;
; end
Also this file can be used with multiple domain names on the same server.
More information about the bind-users
mailing list