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.
|