Setting up DNS server for multiple domains and subdomains

Discussion in 'Server Operation' started by Syed Fawaz, Feb 8, 2020.

  1. Syed Fawaz

    Syed Fawaz New Member

    Hello everyone.
    We are using INFOBLOX device as our DHCP/dns server but this device is giving us some issues related to dns resolvers.
    We are a big environment, and have planned to setup a dns server on CentOS linux migrating it from infoblox device.
    I have seen linux dns servers in small and medium environments. But I am still thinking to give it a try in our environment thinking of the possible repercussions. We have multiple vlans and domains configured.

    I retrieved one dns file from infoblox device which has the following configuration: (just attaching a part of it)

    zone "1.x.x.in-addr.arpa" in { # 1.x.x.in-addr.arpa
    type master;
    allow-update { key DHCP_UPDATER_default; };
    allow-transfer { x.x.x.x; x.x.x.x; x.x.x.x; };
    notify yes;
    };
    zone "3.x.x.in-addr.arpa" in { # 3.x.x.in-addr.arpa
    type master;
    allow-update { key DHCP_UPDATER_default; };
    allow-transfer { x.x.x.x; x.x.x.x; x.x.x.x; };
    notify yes;
    };

    zone "example.com" in { # example.com
    type slave;
    masters { x.x.x.x; };
    allow-update-forwarding { key DHCP_UPDATER_default; none; };
    allow-query { any;};
    allow-transfer { x.x.x.x; x.x.x.x; };
    file "db.example.com._default";
    notify explicit;
    };
    zone "mydomain.com" in { # mydomain.com
    type master;
    allow-update { key DHCP_UPDATER_default; x.x.x.x; x.x.x.x; };
    allow-transfer { x.x.x.x; x.x.x.x; x.x.x.x; x.x.x.x; };
    notify yes;
    };
    zone "_sub.mydomain.com" in { # _sub.mydomain.com
    type master;
    allow-update { x.x.x.x; x.x.x.x; x.x.x.x; };
    allow-transfer { x.x.x.x; x.x.x.x; x.x.x.x; x.x.x.x; };
    notify yes;

    zone "newdomain.com" in { # newdomain.com
    type master;
    allow-update { key DHCP_UPDATER_default; x.x.x.x; x.x.x.x; };
    allow-transfer { x.x.x.x; x.x.x.x; x.x.x.x; x.x.x.x; };
    notify yes;
    };
    As you can see from above configuration file, we have multiple domains and subdomains as forward entries and multiple subnet vlans in reverse entries.
    Can I add all the above configuration in single dns server config file on centos?

    What do you suggest?? And what sort of configuration should be followed?? Should I have 2 separate physical servers one master and other slave?
    Please advice.
     
  2. Taleman

    Taleman Well-Known Member HowtoForge Supporter

  3. Syed Fawaz

    Syed Fawaz New Member

  4. Taleman

    Taleman Well-Known Member HowtoForge Supporter

    Yes, of course. It is not necessary to use ISPConfig. ISPConfig just sets up Bind for you, but you can set up bind directly without using ISPConfig. If you want to use that method, I suggest the DNS and Bind book by Albitz and Liu:
    http://shop.oreilly.com/product/9780596100575.do
    If you use Bind directly, You do not need the info in chapter 4.8.1.2 "Import Zone File" of ISPConfig 3.1 Manual.
    If you do not have access to that book, search for Bind instructions in the Internets.
     

Share This Page