Solved

Complete DNS Config Needed

Posted on 2003-11-30
2
671 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

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

Suggested Solutions

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…
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.
Viewers will learn about the different types of variables in Java and how to declare them. Decide the type of variable desired: Put the keyword corresponding to the type of variable in front of the variable name: Use the equal sign to assign a v…
Explain concepts important to validation of email addresses with regular expressions. Applies to most languages/tools that uses regular expressions. Consider email address RFCs: Look at HTML5 form input element (with type=email) regex pattern: T…

746 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

13 Experts available now in Live!

Get 1:1 Help Now