Dynamic updates AND multiple zones referencing one zone file?
Mark Andrews
Mark_Andrews at isc.org
Tue Jan 8 11:40:44 UTC 2008
> Hello -
>
> I am trying to use have multiple zones reference one file while
> still maintaining the ability to use dynamic updates.
>
> Is this possible?
>
> My setup
>
> [start]
> view "external" {
> match-clients {
> any;
> };
>
> zone "test.com." {
> type master;
> file "db.test.";
> allow-update {
> localhost;
> };
> };
> zone "test.org." {
> type master;
> file "db.test.";
> allow-update {
> localhost;
> };
> };
> }
> [end]
>
> the file db.test.
> [start]
> $TTL 500 ; 8 minutes 20 seconds
> @ IN SOA d62.test.net. hostmaster.d62.test.net. (
> 4 ; serial
> 10800 ; refresh (3 hours)
> 3600 ; retry (1 hour)
> 604800 ; expire (1 week)
> 60 ; minimum (1 minute)
> )
> NS d62.test.net.
> arec A 1.2.3.4
> [end]
>
> This works ok until I do a dynamic update with, for example,
> nsupdate.
>
> nsupdate>
> >update add addtoorg.test.org. 500 IN A 4.4.4.4
> >
>
> That adds the record to test.jnl and creates it in test.org
> zone such that
>
> dig axfr test.org returns:
>
> test.org. 500 IN SOA d62.test.net.
> hostmaster.d62.test.net. 5 10800 3600 604800 60
> test.org. 500 IN NS d62.test.net.
> addtoorg.test.org. 500 IN A 4.4.4.4
> arec.test.org. 500 IN A 1.2.3.4
> test.org. 500 IN SOA d62.test.net.
> hostmaster.d62.test.net. 5 10800 3600 604800 60
>
> and dig axfr test.com returns:
> test.com. 500 IN SOA d62.test.net.
> hostmaster.d62.test.net. 4 10800 3600 604800 60
> test.com. 500 IN NS d62.test.net.
> arec.test.com. 500 IN A 1.2.3.4
> test.com. 500 IN SOA d62.test.net.
> hostmaster.d62.test.net. 4 10800 3600 604800 60
>
>
> after doing an rndc stop, the record
> gets written to the "db.test" file.
> The zone file also gets changed to test.org specific.
> ie:
> $ORIGIN .
> $TTL 500 ; 8 minutes 20 seconds
> test.org IN SOA d62.test.net. hostmaster.d62.test.net. (
> 5 ; serial
> 10800 ; refresh (3 hours)
> 3600 ; retry (1 hour)
> 604800 ; expire (1 week)
> 60 ; minimum (1 minute)
> )
> NS d62.test.net.
> $ORIGIN test.org.
> addtoorg A 4.4.4.4
> arec A 1.2.3.4
>
> It looks like that is order dependent. The last one in the file wins?
>
> So, the file is no longer useable for multiple zones.
>
> My question is:
> Am I missing somne trick to do this or is it not possible to
> have multiple zones reference one file AND use dynamic updates
> on those zones?
It is not possible.
> Thanks
> --
> Jack Tavares
>
>
>
--
Mark Andrews, ISC
1 Seymour St., Dundas Valley, NSW 2117, Australia
PHONE: +61 2 9871 4742 INTERNET: Mark_Andrews at isc.org
More information about the bind-users
mailing list