-   Linux - Newbie (
-   -   Setup subzone in DNS (

rabble1357 01-28-2016 03:02 PM

Setup subzone in DNS
Hello everyone I am fairly new to Linux and have been tasked with setting up a new subzone. For this example I need to add the subdomain to example.local Can anyone explain what steps I have to take to accomplish this task? Please let me know if you need more information from me. I appreciate the help in advance.

Thank you

ceyx 01-28-2016 11:12 PM

Welcome to LQ!

You could help by telling us what distribution you are using ( Fedora Centos Ubuntu etc ) and what you want this DNS Zone for ?
Will be reachable from the internet, or is this for your private internal network for printers or whatever.

What services will be using your network ? Webserver, email, SSH, FTP ??

Some of the DNS setup can be quite easy, some quite daunting. The more information you can provide the easier it is for us to answer you.

rabble1357 01-29-2016 09:17 AM

Thank you for the response ceyx,

I am using Centos and I should rephrase my request I actually need to create a second DNZ zone ( that will call upon the master DNZ zone (example.local) so that instead of it going out of internal firewall and coming back it will remain internal.

Any additional information or help that could point me in the right direction would be greatly appreciated.

ceyx 01-29-2016 11:30 AM

For internal zones, the easiest is probably to edit and add to your /etc/hosts file and enter your hosts in the format :

Quote: server1 server2 server3
( don't change the localhost settings unless you know what you are doing :) )

copy this file to each computer, and away you go. You should be able to ping or ssh each computer just using the ALIAS instead of the IP.

the more challenging thing to do is setup BIND, which is probably overkill for you.

Good luck !

ps you may want to backup or copy the file before you edit anything. Just in case. You need to edit using SUDO.

rabble1357 01-29-2016 11:38 AM

Thanks for all the info I really appreciate I. I just have one last question from forums I have been reading to add another zone I have to make changes to etc/bind/named.conf.local correct?

ceyx 01-29-2016 11:48 AM


I have to make changes to etc/bind/named.conf.local correct?
That would be true if you have BIND installed, which I doubt.

There is a good tutorial on BIND over here :

but leave that for a long weeekend - it is not trivial ! Setting up the /etc/hosts file ( and maybe the /etc/hostname ) should do the trick for you. Why use a Porche just to get the milk ?

All times are GMT -5. The time now is 08:10 PM.