Skip to content

Instantly share code, notes, and snippets.

@Jarred-Sumner
Created September 9, 2012 04:45
Show Gist options
  • Save Jarred-Sumner/3682646 to your computer and use it in GitHub Desktop.
Save Jarred-Sumner/3682646 to your computer and use it in GitHub Desktop.
options {
// tell named where to find zone files
directory "/var/named";
// these answer DNS queries outside of the bonjour.example.com. zone.
// insert address(es) of your normal DNS servers or caches here.
// On Mac OS X, you can find the address(es) via the "scutil --dns" command.
forwarders { 1.2.3.4; 5.6.7.8; };
};
// entry for our new zone
zone "dns.tamefiles.com." {
type master;
file "dns.tamefiles.com";
allow-update { any; };
};
// key for updating our zone
key dns.tamefiles.com. {
algorithm hmac-md5;
secret "BJhGPH/X7rQU7/ZGSuyEHg==";
};
allow-recursion { any; };
allow-query { any; };
allow-query-cache { any; };
// If you don't wish to use a shared secret, replace the line
// allow-update { key bonjour.example.com.; };
// with
// allow-update { any; };
// and omit the key definition.
// If you wish to create a key per user, and don't want to have to include
// the entire list of keys explicitly in the "allow-update" declaration,
// you can use an "update-policy" declaration instead, like this:
// update-policy { grant * wildcard *.bonjour.example.com.; };
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment