Skip to content

Instantly share code, notes, and snippets.

@geta6
Created December 7, 2012 01:42
Show Gist options
  • Save geta6/4230045 to your computer and use it in GitHub Desktop.
Save geta6/4230045 to your computer and use it in GitHub Desktop.
BIND9
$TTL 86400
@ IN SOA ns.geta6.net. root.geta6.net. (
2012120702 ; Serial
3600 ; Refresh
1800 ; Retry
604800 ; Expire
86400 ; Minimum TTL
)
IN NS ns.geta6.net.
IN PTR geta6.net.
IN A 255.255.255.0
30 IN PTR ns.geta6.net.
$TTL 86400
@ IN SOA ns.geta6.net. root.geta6.net. (
2012120701 ; Serial
3600 ; Refresh
1800 ; Retry
604800 ; Expire
86400 ; Minimum TTL
)
IN NS ns.geta6.net.
IN A 192.168.100.100
IN MX 10 ns.geta6.net.
* IN A 192.168.100.100
//
// Do any local configuration here
//
// Consider adding the 1918 zones here, if they are not used in your
// organization
//include "/etc/bind/zones.rfc1918";
zone "geta6.net" {
type master;
file "/etc/bind/db.geta6.net";
allow-update { none; };
};
zone "100.168.192.in-addr.arpa" {
type master;
file "/etc/bind/db.100.168.192";
allow-update { none; };
};
options {
directory "/var/cache/bind";
// If there is a firewall between you and nameservers you want
// to talk to, you may need to fix the firewall to allow multiple
// ports to talk. See http://www.kb.cert.org/vuls/id/800113
// If your ISP provided one or more IP addresses for stable
// nameservers, you probably want to use them as forwarders.
// Uncomment the following block, and insert the addresses replacing
// the all-0's placeholder.
forwarders {
8.8.8.8;
8.8.4.4;
};
allow-query { localhost; 192.168.100.0/24; };
allow-transfer { localhost; 192.168.100.0/24; };
allow-recursion { localhost; 192.168.100.0/24; };
//========================================================================
// If BIND logs error messages about the root key being expired,
// you will need to update your keys. See https://www.isc.org/bind-keys
//========================================================================
dnssec-validation auto;
auth-nxdomain no; # conform to RFC1035
#listen-on-v6 { none; };
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment