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 01-10-2009, 02:05 PM   #1
saagar
Member
 
Registered: Jul 2008
Location: Chennai, India
Distribution: RHEL5, Ubuntu
Posts: 191

Rep: Reputation: 37
A DNS learner's question->Is my DNS configuration right?


Friends,
I am learning to use DNS in RHEL 5. I installed bind, bind-libs, and bind-utils only. I wished to do this through /etc/named.conf and /var/named/* and not through chroot-ing. So I did not install caching-nameserver and bind-chroot. I have configured with minimum entries in /etc/named.conf as I am a learner. But,the forward and reverse lookup through dig command works fine from the localhost. But when I tried to dig from the second computer I am not getting any result. It's just still..I have configured /etc/resolv.conf in client machine with the ip address of the first computer.(nameserver 10.0.0.1). however, I have not configured an example.com domain in the /etc/sysconfig/network nor a ypserver running. Please help what need to be done more.

vi /etc/named.conf
----------------------------------
options {
directory "/var/named";
};

zone "example.com" IN {
type master;
file "fdzone";
};

zone "0.0.10.in-addr.arpa" IN {
type master;
file "revzone";
};
-------------------------------------
and my forward zone file in /var/named/fdzone is as
follows:

$TTL 1D

@ IN SOA linux1.example.com. sagar.gmail.com. (
15
20
30
40
50 )
@ IN NS linux1
linux1 IN A 10.0.0.1
linux2 IN A 10.0.0.2
===============================================
my reverse zone file in /var/named/revzone is as follows:

$TTL 1D

@ IN SOA linux1.example.com. sagar.gmail.com. (
15
20
30
40
50 )
@ IN NS linux1
1 IN PTR linux1.example.com.
2 IN PTR linux2.example.com.

=================================================

Last edited by saagar; 01-10-2009 at 03:42 PM.
 
Old 01-11-2009, 09:27 AM   #2
AlucardZero
Senior Member
 
Registered: May 2006
Location: USA
Distribution: Debian
Posts: 4,824

Rep: Reputation: 615Reputation: 615Reputation: 615Reputation: 615Reputation: 615Reputation: 615
I don't know bind, but please enclose your configuration in code tags.

Code:
[code]like this[/code]
 
Old 01-11-2009, 09:30 AM   #3
saagar
Member
 
Registered: Jul 2008
Location: Chennai, India
Distribution: RHEL5, Ubuntu
Posts: 191

Original Poster
Rep: Reputation: 37
ok. thanks for that.
 
Old 01-11-2009, 02:04 PM   #4
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,163
Blog Entries: 1

Rep: Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032
The configuration file and the 2 zone files look correct.
Check if there is a firewall between server and client preventing queries.

Regards
 
Old 01-12-2009, 08:44 AM   #5
saagar
Member
 
Registered: Jul 2008
Location: Chennai, India
Distribution: RHEL5, Ubuntu
Posts: 191

Original Poster
Rep: Reputation: 37
Thank you bathory. I have done this successfully with the same details, but I also created two zones for the local host in /etc/named.conf as follows:
zone "localdomain" IN {
type master;
file "fdzone.local";
};
zone "0.0.127.in-addr.arpa" IN {
type master;
file "revzone.local";
};

:wq
++++++++++++++++++++++++++++++
/var/named/fdzone.local and /var/named/revzone.local files are created and configured.
+++++++++++++++++++++++++++++
Then this worked perfectly when digged from both the systems..
Thanks a lot.

Last edited by saagar; 01-12-2009 at 08:45 AM.
 
  


Reply

Tags
dns, nameserver


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
dns configuration question. johnewing Linux - Server 3 10-16-2008 03:21 AM
Win2k3 DNS + PFsense DNS Forwarder = No internal DNS resolution Panopticon Linux - Networking 1 11-19-2007 09:59 PM
dns configuration question zugi99 Linux - Newbie 4 03-20-2006 10:12 PM
dns question -- new to dns gadhiraju Linux - Networking 7 05-09-2001 05:59 PM
dns question -- new to dns gadhiraju Linux - General 2 05-09-2001 07:44 AM

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

All times are GMT -5. The time now is 10:44 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
Open Source Consulting | Domain Registration