Are you scared by your company? Company DNS are slow and unreliable? Run your own server forwarding everything to your favorite DNS and just the internal TLDs to your company!
// Avoid forward problems
dnssec-enable yes;
dnssec-validation yes;
// Allow recursion
recursion yes;
// Filter requesters
allow-query { goodclients; };
// Main reliable DNS
forwarders {
208.67.222.222; // OpenDNS
8.8.4.4; // Google DNS
};
// We want only forward requests, not act as real DNS
forward only;
acl goodclients {
192.168.2.0/24;
localhost;
localnets;
};
zone "lan." IN {
type forward;
forward only;
forwarders { COMPANY_DNS; };
};
include "/etc/bind/named.conf.lan";
# service bind9 restart
response-policy { zone "custom-overrides"; };
zone "custom-overrides" {type master; file "/etc/bind/custom-overrides"; allow-query {none;}; };
$TTL 1H
@ SOA LOCALHOST. myhost.example.com (1 1h 15m 30d 2h)
NS LOCALHOST.
custom.google.com A 10.232.101.2
facebook.com A 192.168.3.8