Solved

Complete DNS Config Needed

Posted on 2003-11-30
2
680 Views
Last Modified: 2013-11-18
I have spent over a week attempting different configurations and I have gotten close but just can't seem to grasp the Brass Ring... Instead of tryint to fix my patched together attempts and make them work, I am more willing to pay the points for a cut and paste configuration. Here are the specifics behind my network:

Primary Domain Name:
abcde.net

4 Hosts : IP
   ls01.abcde.net   1.2.3.51
   ls02.abcde.net   1.2.3.52
   ls03.abcde.net   1.2.3.53
   ls04.abcde.net   1.2.3.54

ls01 is also known as ns1.abcde.net and is Master NS
ls04 is also known as ns4.abcde.net and is Secondary NS

MX should point to mail.abcde.net @ 1.2.3.51

Also add in the following secondary and tertiary domains to the mix so they resolve correctly
   abcde.com
   abcde.org

Assume there is an FTP and WWW on 1.2.3.51 for all three domain names
Assume the contact name for any zone is dnsadmin

I only wish to have the Primary NS Conf files... once I have this working I will worry about the Seconday... If you are feeling industrious, feel free to include for both...

If you need more Info, I will be available to answer... I need this rather quickly since I have already registered the ns1 and ns4 boxes and have the abcde.xxx domains pointing at them. Nothing like being in a rush.
Thanks in advance!
-greg
0
Comment
Question by:Gregory Miller
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 13

Accepted Solution

by:
td_miles earned 500 total points
ID: 9847282
OK, you want a cut/paste job, here it is:

Append this to your "/etc/named.conf" file:
=============
zone "abcde.net" IN {
        type master;
        file "zone/abcde.net";
        allow-transfer {192.168.144.0/24; localhost; };
        allow-query { any;};
};
=============

When you setup the secondary NS, you'll need to add the IP address into the "allow-transfer" field, so that it can do the zone transfer to sync. I run my DNS on a NAT'ed 192.168.144.x address, hence why mine has this. I left it in, so that there was something in there.


Then create the zone file "/var/named/zone/abcde.net":
=============
$TTL 86400      ; 1 day
@               IN SOA  ns1.abcde.net. postmaster.abcde.net. (
                                2002070901          ; serial
                                600     ; refresh (3 hours)
                                3600       ; retry (1 hour)
                                604800     ; expire (1 week)
                                86400      ; minimum (1 day)
                                )
                        NS      ns1.abcde.net.
                        NS      ns4.abcde.net.
                        MX      10 mail.abcde.net.
$ORIGIN abcde.net.
ns1                   A       1.2.3.51
ns4                   A       1.2.3.54
ls01                  A       1.2.3.51
ls02                  A       1.2.3.52
ls03                  A       1.2.3.53
ls04                  A       1.2.3.54
www                   A       1.2.3.51
ftp                   A       1.2.3.51
mail                  A       1.2.3.51            
=============

Replicate the above for the .com & .org (you'll need to do both parts). Restart named and see how you go. I'm assuming that you have the default config locations and stuff. I haven't included all of the default stuff that goes in named.conf that gives locations and other default options. If you DO need this, let me know.


If you haven't found it already, a good reference is:
http://www.tldp.org/HOWTO/DNS-HOWTO.html


0
 
LVL 11

Author Comment

by:Gregory Miller
ID: 9848252
Thank you... The HOWTO you referenced was the nail that sealed the coffin. DNS is live on one server and the second is just quivering in anticipation. I, on the otherhand need sleep... It is amazing how a missing "." can cause so much grief.

I actually had pretty much the same file as you had listed but with one exception. I negelcted to put the period "." after the FQDN on the SOA line. Oh well... not bad for never looking at DNS configurations before. The points are yours...

Thanks Again...
-Gregory Miller
AGBSM, LLC
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
removing hyperlinks from end-notes in a PDF to HTML conversion 8 120
Problem to page 4 100
centos linux 65 192
MediaWiki - Move a site 4 32
Preface This article introduces an authentication and authorization system for a website.  It is understood by the author and the project contributors that there is no such thing as a "one size fits all" system.  That being said, there is a certa…
Shoutout to Emily Plummer (http://www.experts-exchange.com/members/eplummer26.html) for giving me this article! She did most of it, I just finished it up and posted it for her :)    Introduction In a previous article (http://www.experts-exchang…
The viewer will learn how to create a basic form using some HTML5 and PHP for later processing. Set up your basic HTML file. Open your form tag and set the method and action attributes.: (CODE) Set up your first few inputs one for the name and …
Video by: Mark
This lesson goes over how to construct ordered and unordered lists and how to create hyperlinks.

726 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question