How to handle zones that need to be the same in all views?

Mark Andrews marka at isc.org
Wed Jun 13 01:00:00 UTC 2012


This really isn't that hard.  Just use tsig and transfer the zone
between views on the slave machine.  Just ensure that you transfer
from the view that is getting the notify messages from the master.

You will want BIND 9.9.x or later.

Mark

key view1 {
	....
};

....

key view16 {
	....
};

acl viewkeys {
	key view1;
	key view2;
	...
	key view16;
};

view view1 {
	match-clients { key view1; !viewkeys; ....; };
	zone xxx {
		type slave;
		masters { ....; };
		file "slave/view1/xxx";
		also-notify {
			 127.0.0.1 key view2;
			 127.0.0.1 key view3;
			 ....
			 127.0.0.1 key view16;
		};
	};
}

view view2 {
	match-clients { key view2; !viewkeys; ....; };
	zone xxx {
		type slave;
		masters { 127.0.0.1 key view1; };
		file "slave/view2/xxx";
	};
};

...

view view16 {
	match-clients { key view16; !viewkeys; ....; };
	zone xxx {
		type slave;
		masters { 127.0.0.1 key view1; };
		file "slave/view16/xxx";
	};
};

-- 
Mark Andrews, ISC
1 Seymour St., Dundas Valley, NSW 2117, Australia
PHONE: +61 2 9871 4742                 INTERNET: marka at isc.org



More information about the bind-users mailing list