Create a gist now

Instantly share code, notes, and snippets.

@emhr /named.conf
Last active Jan 25, 2016

What would you like to do?
BIND configuration file for Homebrew installation
//
// Include keys file
//
include "/usr/local/etc/rndc.key";
// Declares control channels to be used by the rndc utility.
//
// It is recommended that 127.0.0.1 be the only address used.
// This also allows non-privileged users on the local host to manage
// your name server.
//
// Default controls
//
controls {
inet 127.0.0.1 port 54 allow { any; }
keys { "rndc-key"; };
};
options {
directory "/usr/local/var/named";
forwarders {
208.67.222.222; //OpenDNS
208.67.220.220; //OpenDNS
};
listen-on {
localhost;
localnets;
};
allow-query {
localhost;
localnets;
};
};
//
// a caching only nameserver config
//
zone "." IN {
type hint;
file "named.ca";
};
zone "dev" IN {
type master;
file "dev.zone";
};
zone "localhost" IN {
type master;
file "localhost.zone";
allow-update { none; };
};
zone "0.0.127.in-addr.arpa" IN {
type master;
file "named.local";
allow-update { none; };
};
logging {
category default {
_default_log;
};
channel _default_log {
file "/usr/local/var/log/named/named.log";
severity info;
print-time yes;
};
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment