Skip to content

Instantly share code, notes, and snippets.

@rjsalts
Last active August 29, 2015 14:05
Show Gist options
  • Save rjsalts/6a42636163289285cb8a to your computer and use it in GitHub Desktop.
Save rjsalts/6a42636163289285cb8a to your computer and use it in GitHub Desktop.
options {
...
};
view "one" {
match-clients {
key "key_one";
!key "key_two";
!key "key_three";
...
!key "key_n";
192.0.2.0/24;
};
// zone statements go here for the view
...
// you're going to need multiple server { ... }; blocks if you have more than one slave
server slave|master {
keys "key_one";
};
// don't need the allow-transfer on slaves
allow-transfer {
key "key_one";
};
};
view "two" {
match-clients {
key "key_two";
!key "key_one";
!key "key_three";
...
!key "key_n";
198.51.100.0/24;
};
...
server slave|master {
keys "key_two";
};
// don't need the allow-transfer on slaves
allow-transfer {
key "key_two";
};
};
view "three" {
match-clients {
key "key_three";
!key "key_one";
!key "key_two";
...
!key "key_n";
203.0.113.0/24
};
...
server slave|master {
keys "key_three";
};
// don't need the allow transfer on slaves
allow-transfer {
key "key_three";
};
};
...
view "n" {
match-clients {
key "key_n";
!key "key_one";
!key "key_two";
...
};
...
server slave|master {
keys "key_n";
};
// don't need the allow transfer on slaves
allow-transfer {
key "key_n";
};
};
// generate the following with ddns-confgen -k key_one, etc.
key "key_one" {
algorithm "...";
secret "...";
};
key "key_two" {
algorithm "...";
secret "...";
};
key "key_three" {
algorithm "...";
secret "...";
};
...
key "key_n" {
algorithm "...";
secret "...";
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment