LinuxQuestions.org
Register a domain and help support LQ
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 07-13-2005, 11:17 PM   #1
MafiaScripts
LQ Newbie
 
Registered: Jul 2005
Posts: 3

Rep: Reputation: 0
how to make own DN1 and DN2


Hi guys!
using Fedora4, and I'm new in linux world , it seems I want to do an advanced(for me )configuration
I want to have dn1.mafiascripts.com and dn2.... how can I make it?
If u can please guide me or show me some article, e-book, note and etc to geting start it
if u have some stuff related to my quastion please send it to mafiascripts@gmail.com

thanks in advance
 
Old 07-14-2005, 04:14 PM   #2
phil.d.g
Senior Member
 
Registered: Oct 2004
Posts: 1,192

Rep: Reputation: 101Reputation: 101
Do you mean you want to set up a pair of DNS servers?

Well first of all if you have not registered and paid for the domain "mafiascripts.com" then you need to do that, then your domain registrar will have a page that will allow you to register name servers for your domain, you will need the two machines with 2 separate IPs, ideally the machines want to be in different locations physically and then you can register dn1.mafiascripts.com and dn2.mafiascripts.com as nameservers pointing to your two machines. Then you will need to set up DNS servers on your machines, the most commonly used software for this is BIND, there wil be a few how-tos about, search google for them.

It is easier and, unless you have dedicated servers at a data centre, more reliable to use your domain registrar's DNS servers and just set up A records, CNAME records, MX records as you need using their web interface
 
Old 07-14-2005, 04:25 PM   #3
barghota
Member
 
Registered: Jul 2003
Location: Cairo, Egypt
Distribution: CentOS, RHEL, Debian, FreeBSD
Posts: 94

Rep: Reputation: 38
First of all you have to delegate a zone in mafiascripts.com domain to point to ur DNS server, then make sure that the bind, bind-utils, caching-nameserver are installed.

Second, Configuring ur domain as a slave name server
1. # vi /etc/named.conf
Code:
zone "dn1.mafiascripts.com" {
     type slave;
     masters { (HERE GOES THE IP OF mafiascripts.com); };
     file "slave-dn1.mafiascripts.zone";
};
2. service named restart
3. chkconfig named on

Third, Configuring ur domain as a master name server
1. # vi /etc/named.conf
Code:
zone "dn1.mafiascripts.com" {
     type master;
     file "master-dn1.mafiascripts.zone";
};
2. Prepare database file

# vi /var/named/master-dn1.mafiascripts.zone
Code:
$TTL (what ever time to live you want)
@   IN   SOA   dn1.mafiascripts.com   root.dn1.mafiascripts.com ( 2005071423; 28800; 14400; 3600000; 0 );
@   IN    NS    dn1.mafiascripts.com
@   IN    A       (THE IP OF THE MACHINE WHICH WILL RUN THE DNS SERVER)
3. Restart named

service named restart

This is a very basic configuration for a DNS server, Hope it works
 
Old 07-15-2005, 08:04 AM   #4
MafiaScripts
LQ Newbie
 
Registered: Jul 2005
Posts: 3

Original Poster
Rep: Reputation: 0
thanks guys!
Now I know what I have to do,,,
and I'll tell u results
thanks again
 
Old 07-15-2005, 08:40 AM   #5
MafiaScripts
LQ Newbie
 
Registered: Jul 2005
Posts: 3

Original Poster
Rep: Reputation: 0
barghota should I just past them in named.conf or replace them with localhostdomain.localhost.zone?
 
  


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
package compiling from source, make & make install concepts shujja Linux - Newbie 2 09-20-2005 01:18 AM
Chap 5 Binutils make LDFLAGS & make install errors shotokan Linux From Scratch 5 04-10-2005 04:01 AM
I accidentally deleted make file in /usr/local/bin, now cannot use make command.... Niceman2005 Linux - Software 2 11-17-2004 08:55 PM
How to make rule for make install and make uninstall melinda_sayang Programming 1 06-14-2004 06:58 AM
make dep,make clean,make bzImage problem Babba Linux - Newbie 2 01-08-2003 04:49 AM


All times are GMT -5. The time now is 04:01 PM.

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