How to sync multi-viewed domain?

Mark_Andrews at isc.org Mark_Andrews at isc.org
Wed Jan 30 00:04:33 UTC 2002


	See the bind-9.2.0/FAQ.

> Dear all,
> I just ran into an interesting problem that I am not sure how it can be
> solved.
> 
> Problem givens:
> ===============
> 1) Two servers Master and Slave.
> 2) One domain "foo.com" with two separate views, Internal and Default.
> 3) Master's views for Foo.com:
> view "internal" {
>         match-clients { trusted; };  // slave server is part of trusted
>         zone "foo.com" {
>                 type master;
>                 file "int/foo.com";
>                 allow-transfer { "slaves"; };
>         };
> };
> view "default" {
>         match-clients { any; };
>         zone "foo.com" {
>                 type master;
>                 file "ext/foo.com";
>                 allow-transfer { "slaves"; };
>         };
> };
> 
> 4) Slave's views for Foo.com:
> view "internal" {
>         match-clients { trusted; };
>         zone "foo.com" {
>                 type slave;
>                 file "int/foo.com";
>                 masters { xx.xx.xx.xx; };
>         };
> };
> view "default" {
>         match-clients { any; };
>         zone "foo.com" {
>                 type slave;
>                 file "ext/foo.com";
>                 masters { xx.xx.xx.xx; };
>         };
> 
> Problem:
> ========
> Using this setup, the Slave retrieves both "foo.com" and puts one in "ext"
> and another in "int", however the contents are the same, they both match
> "internal" on the Master server.
> I know exactly why this is happening, and that is because the slave's "ls -d
> foo.com" on the master matches the "internal" view only.
> 
> Question:
> =========
> How do you have a master with two views for the same domain, and have a
> slave transfer those TWO different views?
> 
> Workaround:
> ===========
> My only temp work around now is to make the "default" view on slave server a
> master of the record, which requires manually keeping the records in sync.
> 
> 
> Thank you very much, and awaiting your reply,
> 
> Osman Shoukry
> 
> 
> 
--
Mark Andrews, Internet Software Consortium
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