LinuxQuestions.org
Latest LQ Deal: Linux Power User Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 01-28-2016, 04:02 PM   #1
rabble1357
LQ Newbie
 
Registered: Jan 2016
Posts: 5

Rep: Reputation: Disabled
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 example.com 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
 
Old 01-29-2016, 12:12 AM   #2
ceyx
Member
 
Registered: May 2009
Location: Fort Langley BC
Distribution: Kubuntu,Free BSD,OSX,Windows
Posts: 342

Rep: Reputation: 58
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 example.com 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.
 
Old 01-29-2016, 10:17 AM   #3
rabble1357
LQ Newbie
 
Registered: Jan 2016
Posts: 5

Original Poster
Rep: Reputation: Disabled
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 (example.com) 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.
 
Old 01-29-2016, 12:30 PM   #4
ceyx
Member
 
Registered: May 2009
Location: Fort Langley BC
Distribution: Kubuntu,Free BSD,OSX,Windows
Posts: 342

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

IP DOMAINNAME ALIAS
Quote:
192.168.0.10 server1.example.com server1
192.168.0.11 server2.example.com server2
192.168.0.1X server3.example.com 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.

Last edited by ceyx; 01-29-2016 at 12:36 PM. Reason: ps
 
Old 01-29-2016, 12:38 PM   #5
rabble1357
LQ Newbie
 
Registered: Jan 2016
Posts: 5

Original Poster
Rep: Reputation: Disabled
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?
 
Old 01-29-2016, 12:48 PM   #6
ceyx
Member
 
Registered: May 2009
Location: Fort Langley BC
Distribution: Kubuntu,Free BSD,OSX,Windows
Posts: 342

Rep: Reputation: 58
Quote:
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 : http://www.server-world.info/en/note?os=CentOS_7&p=dns

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 ?
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
DNS subzone resolving Evstrati Linux - Server 2 06-26-2012 07:52 AM
help needed to setup a DNS server can anyone say how to configure a DNS server subha Linux - Networking 4 04-28-2012 12:50 AM
DNS Setup samiullah Linux - Newbie 4 02-16-2012 05:04 AM
Before setup DNS and after DNS question sportivo888 Linux - Enterprise 7 12-13-2009 10:47 PM
DNS setup help tsaravan Linux - Networking 1 11-12-2007 03:10 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 12:35 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration