Solved

Complete DNS Config Needed

Posted on 2003-11-30
2
673 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:Technodweeb
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:Technodweeb
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

Zoho SalesIQ

Hassle-free live chat software re-imagined for business growth. 2 users, always free.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
reserve ip address for mac address in ubuntu dhcp server 2 56
Snap images to the bottom of a div 5 65
AngularJS directive issue 6 65
Problem to page 4 75
Introduction Knockoutjs (Knockout) is a JavaScript framework (Model View ViewModel or MVVM framework).   The main ideology behind Knockout is to control from JavaScript how a page looks whilst creating an engaging user experience in the least …
JavaScript has plenty of pieces of code people often just copy/paste from somewhere but never quite fully understand. Self-Executing functions are just one good example that I'll try to demystify here.
The viewer will learn the benefit of using external CSS files and the relationship between class and ID selectors. Create your external css file by saving it as style.css then set up your style tags: (CODE) Reference the nav tag and set your prop…
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 …

867 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

Need Help in Real-Time?

Connect with top rated Experts

25 Experts available now in Live!

Get 1:1 Help Now