Zone problem (domain == host)

Kevin Darcy kcd at daimlerchrysler.com
Mon Oct 2 23:29:44 UTC 2000


Michel Szybist wrote:

> Hello to everyone !
>
> I'm having problems in setting this zone up: (mydomain.com)
> - it contains several hosts, CNAMEs, for general purpose,
> - and it contains test1, test2, (and will contain other clients entries
> like these ones)
>
> Problem:
> - test1 work, because the A record is understood
> - test2 does not work (zone rejected) because CNAME is not understood
> here...
>
> I want test1 to be a host AND a subdomain...
> Is there a way to do it without the need of setting A records ?
> (but CNAMES ?)

You have to use an A record here. CNAMEs cannot co-exist with other record
types, and you already have an MX record with the name "test2".

> My zone will be dynamic (nsupdate) and I do not want my zone to become
> a big /etc/hosts file !! ;-(

If it's going to be dynamically-updated anyway, why do you care what it
looks like?


-Kevin

> Do you have a tip ?
>
> $ORIGIN mydomain.com.
> @                       1D IN SOA       ns hostmaster (
>                                         2000100202      ; serial
>                                         8H              ; refresh
>                                         4H              ; retry
>                                         5w6d16h         ; expiry
>                                         1D )            ; minimum
>
>                         1D IN NS        ns
>                         1D IN NS        ns0.myprovider.net.
>                         1D IN NS        ns1.myprovider.net.
>                         1D IN MX        10
> inbound.mydomain.com.mailprovider.net.
>
> localhost               1D IN A         127.0.0.1
> www                     1D IN A         192.168.1.2

> mail.mydomain.com.mailprovider.net.
>
> test1                   1D IN A         192.168.1.2
>                         1D IN MX        20
> inbound.test1.mydomain.com.mailprovider.net.
> smtp.test1              1D IN CNAME
> smtp.test1.mydomain.com.mailprovider.net.
> mail.test1              1D IN CNAME
> mail.test1.mydomain.com.mailprovider.net.
> www.test1               1D IN A         192.168.1.2
>
> test2                   1D IN CNAME     www.mydomain.com.
>                         1D IN MX        20
> inbound.test2.mydomain.com.mailprovider.net.
> smtp.test2              1D IN CNAME
> smtp.test2.mydomain.com.mailprovider.net.
> mail.test2              1D IN CNAME
> mail.test2.mydomain.com.mailprovider.net.
> www.test2               1D IN CNAME     www.mydomain.com.
>
> ns                      1D IN A         192.168.1.2
> *                       1D IN CNAME     www
>
> --
> Michel Szybist
> msz at email.com
> Fax: +44 8701 3737 30
>
> Sent via Deja.com http://www.deja.com/
> Before you buy.






More information about the bind-users mailing list