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

I was configuring DNS on my server using BIND9, everything seems to work, but I have a question regarding my config file.

I've ended up with this configuration in /etc/bind/named.conf.local

zone "" {
  type master;
  file "/etc/bind/";
  allow-transfer {; };
zone "" {
  type master;
  notify no;
  file "/etc/bind/db.192";
  allow-transfer {; };
forwarders {;;

I've read about the different type of dns server, like primary master etc. The first two parts (zone and zone) corresponds to primary dns server configuration. First record for "classic" lookup, second one for reverse. The last part (forwarders) is configuration of cache-server and contains the ISP's IP of DNS server. So all names resolved thanks to this server will be cached.

Simple question: am I right? Does my description make sense? Or one server can be only either master or either cached?

share|improve this question
up vote 4 down vote accepted

A single installation of Bind can handle all roles, primary, secundary, caching. The fowarders line in the config means that when the server does not know the answer to your query (from cache, or own zone files) it will query one of the forwarders for you, instead of doing a zone lookup starting from "." (root).

By default, bind caches all DNS requests.

share|improve this answer
great, that's enough for me, thx – tsusanka Nov 19 '12 at 10:32

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.