LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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-29-2010, 04:34 AM   #1
gardenair
Member
 
Registered: Oct 2004
Location: LH
Posts: 610

Rep: Reputation: 31
Alternale DNS server (Bind)


I have successly configured my master DNS server in red hat Linux.Now i want to make altrernate DNS server (BIND 9).

What changes should I do ? I know a Ip address and any other thing to change in named.conf file ...?
The /etc/resolv.conf file in my bind server is as


Code:
search mydomain.com
nameserver 192.168.1.254
The named.config it main configuration is as below

Code:
zone "mydomain.com" IN {
	type master;
	file "mydomain.com.fwd";
	allow-update { none; };
};

zone "1.168.192.in-addr.arpa" IN {
	type master;
	file "mydomain.com.rev";
	allow-update { none; };
};

include "/etc/rndc.key";
Forword file is

Code:
$ORIGIN mydomain.com.	
$TTL	86400
@		IN SOA	mainserver.mydomain.com.	admin@mydomain.com. (
					20100723	; serial (d. adams)
					3H		; refresh
					15M		; retry
					1W		; expiry
					1D )		; minimum
@		IN NS		mainserver.mydomain.com.
@		IN MX 10	 mainserver.mydomain.com.
mainserver.mydomain.com.	IN	A	192.168.1.254
www				IN	CNAME	mainserver
pc1.mydomain.com.		IN	A	192.168.1.1
Reverse file



Code:
$ORIGIN 1.168.192.in-addr.arpa.
$TTL	86400
@		IN SOA	mainserver.mydomain.com. admin@mydomain.com. (
				20100722	; serial (d. adams)
				3H		; refresh
				15M		; retry
				1W		; expiry
				1D )		; minimum

@	        IN NS		mainserver.mydomain.com.
@		IN MX	10	mainserver.mydomain.com.

254.1.168.192.in-addr.arpa.		IN	PTR	mainserver.mydomain.com.
1.1.168.192.in-addr.arpa.		IN	PTR	pc1.mydomain.com.
 
Old 07-29-2010, 05:16 AM   #2
sem007
Member
 
Registered: Nov 2006
Distribution: RHEL, CentOS, Debian Lenny, Ubuntu
Posts: 638

Rep: Reputation: 113Reputation: 113
Hi,

what do you mean alternate DNS? You can create slave DNS server which handle client queries if master is down.

you can find dns configuration below.

How to create master/slave DNS
 
Old 07-29-2010, 05:28 AM   #3
gardenair
Member
 
Registered: Oct 2004
Location: LH
Posts: 610

Original Poster
Rep: Reputation: 31
Code:
You can create slave DNS server which handle client queries if master is down
Yes I want to create slave DNS server but what changes should i do in my named.cong ,fwd and rev files ...?

Quote:
zone "mydomain.com" IN {
type slave;
file "sec.mydomain.com.fwd";
masters {192.168.1.254;}
allow-update { none; };
};
Please guide me.I am uisng Red Hat.

Last edited by gardenair; 07-29-2010 at 05:58 AM.
 
Old 07-29-2010, 05:48 AM   #4
sem007
Member
 
Registered: Nov 2006
Distribution: RHEL, CentOS, Debian Lenny, Ubuntu
Posts: 638

Rep: Reputation: 113Reputation: 113
previous tutorial also work on redhat if you read proper.

create slave dns on centos

I hope it will help
 
  


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
Bind (DNS server) nima0102 Linux - Server 2 03-11-2009 11:35 AM
How to get Windows Clients to be served DNS from a Linux BIND-DNS Server texmansru47 Linux - Networking 12 07-10-2008 07:06 PM
Setup DNS server on Ubuntu 7.04 Server edition using Bind 9 breezey Linux - Server 2 09-16-2007 03:36 AM
BIND 9 DNS server niranjan_mr Linux - Software 2 08-05-2005 04:32 AM

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

All times are GMT -5. The time now is 12:48 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