======BIND - Notes====== [[http://www.zytrax.com/books/dns/|Zytrax.com - DNS for Rocket Scientists]] \\ =====Conditional Forwarding===== To add conditional forwarding for a specific zone, add the following to named.conf: zone "domain.com" in { type forward; forward only; forwarders { 10.1.1.1; 10.1.1.2; 10.1.1.3; }; }; Where "domain.com" is the domain to forward queries for and 10.1.1.1, 10.1.1.2, 10.1.1.3 are DNS servers to forward the queries to. **NOTE** for this to work, recursion needs to be enabled! Sources:\\ [[http://serverfault.com/questions/99101/conditional-dns-forwarding-with-named-on-linux|Server Fault - Conditional DNS forwarding with named on Linux]] \\ [[http://serverfault.com/questions/287652/bind9-forwarders-not-working-internal-dns-resolves-but-doesnt-forward-requests|Server Fault - BIND9 forwarders not working. Internal DNS resolves but doesn't forward requests it can't process]] =====Empty Root Zone===== To replace the default root hints with an empty root zone, for example to prevent resolving external non-forwarded domains when recursion is enabled, add the following to named.conf: zone "." { type hint; file "db\empty.txt"; }; Make sure to point "file" to an empty file. On Unix-like operating systems you can use "/dev/null" instead. Source: [[http://www.linuxquestions.org/questions/linux-networking-3/bind-config-forwarded-zones-not-working-as-expected-850159/|LinuxQuestions.org > Forums > Linux Forums > Linux - Networking > [SOLVED] Bind Config - Forwarded Zones not working as expected]]