Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

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

(See bottom for what I think might be the solution.)

I want to configure bind on our caching dns to resolve to (an internal host) while still forwarding all other requests to our internet provider's name servers. This should only work from our intranet, the box is not meant for external access.

I got the first part working by creating a master zone for and adding an address entry for bla:


$ttl 38400 IN      SOA     dns. (
                        38400 ) IN      NS      s6.      IN      A

But of course now nobody in our intranet can find our webserver any more.

If I remove this master zone again, everything goes back to normal, that is bind only caches and forwards dns lookups.

I already tried Google but either I did not find the correct key words or this problem is so rare that nobody writes about it (which I just can't believe).

Any hints?


I tried adding a master zone for as voretaq7 suggested:


$ttl 38400   IN  SOA dns. (
        38400 )   IN  A

and restarted bind, just to be sure.

Now, nslookup kind of works:

Default Server:  localhost

Server:  localhost


(Why does it say "Default Server: localhost", that's not the ip of my local box but the ip of the name server.)

But a ping still returns the ip address from my internet provider's dns.


Based on an answer to this question I think dnsmasq is what I am looking for. I'll give it a try.

share|improve this question

Create a zone for the specific host you want to resolve (, containing only that host and any subdomains under it (, etc.).

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.