Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

We have a DNS server internally that looks up IP addresses for all internal hosts and connects to root dns servers for all other domains (the rest of the internet). Here is my config

options {
    listen-on port 53 {;any; };
    listen-on-v6 port 53 { ::1; };
    directory       "/var/named";
    dump-file       "/var/named/data/cache_dump.db";
    statistics-file "/var/named/data/named_stats.txt";
    memstatistics-file "/var/named/data/named_mem_stats.txt";
    allow-query     {;; };
    recursion yes;

logging {
        channel default_debug {
                file "data/";
                severity dynamic;

view “internal” { // What the home network will see

   match-clients      {;any; };
   match-destinations {;any; };

   recursion yes;

   zone "." IN {
        type hint;
        file "";

   include "internal_zones.conf";

We need to tweak this to go to our ISPs dns, x.y.z.w instead of the root dns servers if the host cannot be resolved internally.


Fedora 10/Bind 9.5.2

share|improve this question
up vote 2 down vote accepted

You would need to use the forward only and forwarders options like this. Replace the google servers with the servers you need.

options {
    forward only;

    forwarders {; // google public dns;
share|improve this answer
So it would lookup all internal hosts based on my internal_zones.conf file and all others would be forwarded? – ankimal May 3 '10 at 19:47
Yes, any request for records that cannot be answered by the lookups to the local zones will be forwarded. – Zoredache May 3 '10 at 19:49
Works like a charm! – ankimal May 3 '10 at 20:03

You can use global forwarders for this. Bind Documentation: Caching nameserver

Bind will forward the request when it can not provide the answer form itself.

You have to add the following lines to your Options section of the named.conf:

forwarders {
    x.y.z.w; w.z.y.x;
share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.