Multiple Domains pointing to one zone
Mark.Andrews at nominum.com
Mark.Andrews at nominum.com
Sat Feb 10 00:04:16 UTC 2001
Why don't you just give all the slave zone files a unique name.
Its not like you have to edit them.
Mark
> I know in bind 4 that it was possible to point multiple domains
> to one zone file. This was great for doing virtual hosting.
> I just upgraded to bind 8.2.3 and am having some problems.
> I tried pointing a few domains to one zone file say :
> MASTER:
> zone "domain.com" {type master; file "virt.zone"; };
> zone "domain.net" {type master; file "virt.zone"; };
> zone "domain.org" {type master; file "virt.zone"; };
> SLAVE:
> zone "domain.com" {type slave masters { 10.0.0.1; };
> file "virt.zone"; };
> zone "domain.net" {type slave masters { 10.0.0.1; };
> file "virt.zone"; };
> zone "domain.org" {type slave; masters { 10.0.0.1; };
> file "virt.zone"; };
>
> This seems to work on the master but when a zone transfer happens
> on the slave it sticks in the $ORIGIN tag and screws things up.
> by the way my zone file looks something like this:
> $TTL 3600
> @ IN SOA ns1.nameserver.com. dns-admin.nameserver.com. {
> 20010502
> 10800
> 3600
> 604800
> 3600
> }
> NS ns1.nameserver.com.
> NS ns2.nameserver.com.
> IN A 10.0.0.2
> IN MX 10 mail.server.com
> www IN A 10.0.0.2
> ftp IN CNAME www
> * IN CNAME www
>
> Thats on my master. When it transfers it looks something like:
> $ORIGIN com.
> domain 3600 IN SOA ns1.nameserver.com. dns-admin.nameserver.com. {
> 20010502
> 10800
> 3600
> 604800
> 3600
> }
> 3600 IN NS ns1.nameserver.com.
> 3600 IN NS ns2.nameserver.com.
> 3600 IN A 10.0.0.2
> 3600 IN MX 10 mail.server.com
> $ORIGIN domain.com
> www 3600 IN A 10.0.0.2
> ftp 3600 IN CNAME www
> * 3600 IN CNAME www
>
> Any Ideas on how I can make this work on my secondary?
> Like not have it put in the $ORIGIN TAGS?
> Please reply to my email. I am not on this list.. Thanks
>
>
> Sent via Deja.com
http://www.deja.com/
>
--
Mark Andrews, Nominum Inc.
1 Seymour St., Dundas Valley, NSW 2117, Australia
PHONE: +61 2 9871 4742 INTERNET: Mark.Andrews at nominum.com
More information about the bind-users
mailing list