Bind DNS for Multiple Domains

Discussion in 'Server Operation' started by vijayprabhakar, Jun 27, 2012.

  1. vijayprabhakar

    vijayprabhakar New Member

    Hi Guys,

    If i have 2 or more domains such as domainname.com,domainname.net yourdomain.com etc..

    I configure master DNS for yourdomain.com where i configured on named.conf and created zone files .

    if have multiple domain names such as i mentioned above.Where i have to include these domain names in named.conf or shall i just create zone files ..?

    Guys please help me
     
  2. TiTex

    TiTex New Member

    you can include as many domains as you want in named.conf like this

    Code:
    zone "example.com" in{
      type master;
      file "master.example.com";
    }
    
    zone "example.net" in{
      type master;
      file "master.example.net";
    }
    Note: the zone file is a relativ path for the directory specified in the options stanza in named.conf.
    Note2: there are many other options you can specify both in zone stanza's and/or other options ... you should check the bind documentation
     
  3. vijayprabhakar

    vijayprabhakar New Member

    Thanks Titex,

    After we configured slave server when we adding a new record on example.com zone file we need to increase the count on serial number.

    In the multiple domain case we need to increase to count on all zone files or example.com zone file alone...?
     
    Last edited: Jun 27, 2012
: bind 9, dns

Share This Page