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 am trying to configure DNS to run two domain names. I am able to do one domain but am not sure how to configure a second domain.

So for example: and on same machine.

How do i configure zone file and named.conf to achieve this?

share|improve this question
up vote 1 down vote accepted

Each domain would have its own zone file with its own records. In named.conf, each zone gets its own declaration as such:

zone "" in{
  type master;
  file "";
  // enable slaves only
  allow-transfer {;;);

So you would have one block for, and another for each directed to load the appropriate zone file from disk.

share|improve this answer

sorry every one it was an eager question i got the answer.

named.conf = zone "" IN {
        type master;
        file "data/";
        allow-update { none; };

and simillar with zone files as stated in file "" inside data directory..

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.