Secondary with two views only updates one view on notify
Mark Andrews
Mark_Andrews at isc.org
Tue Jun 28 22:53:02 UTC 2005
> Hello,
> i have a problem with the following nameserver setup.
>
> The first nameserver has no views (only the default view). It is the prima=
> ry server for a couple of domains.
>
>
> The secondary nameserver has two views (internal and external).
> It is primary for some domains, with different data in the externel and in=
> ternal view.
> It is the secondary server for domains on the first server. Both views sho=
> uld contain the same data for this domains.=20
>
>
> view internal {
> match-clients {
> <internal-ips>;
> 127.0.0.1;
> };
> include "/etc/bind/zones.primary.internal.conf";
> include "/etc/bind/zones.secondary.conf";
> };
> =20=20=20=20=20=20=20=20=20=20
> view external {
> match-clients {any;};
> include "/etc/bind/zones.primary.external.conf";
> include "/etc/bind/zones.secondary.conf";
> };
>
>
> This setup works fine, as long as nothing changes on the primary server.
>
> If i change something on the primary (and update the serial number) a noti=
> fication is send to the secondary and the zonefile is transferred. If i lo=
> ok into the zone-file on the secondary, i can see the changes.
>
> If i query the secondary nameserver from a client with an externel IP, i g=
> ot the new data. But if i query the secondary from a client with an intern=
> al IP, i get the OLD data.
>
> How can i refresh the internal view?
Transfer it from the external view.
Using a loopback interface alias of 127.0.0.2 (treated as external).
internal
masters { <any address on server>; };
allow-notify { 127.0.0.1; };
transfer-source { 127.0.0.2; };
external
notify-source 127.0.0.1;
also-notify { 127.0.0.1; };
> Greetings=20
> Andreas
> =20
>
>
>
--
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