#navbar { (To hide nav bar in blogger) height: 0px; visibility: hidden; display: none; }

Tuesday, September 8, 2009

 

DNS Sever Configuration in RHEL5


Requirements of DNS Server Configuration
Software’s                    == bind* cach *
Config. Files (1)   ==/etc/named.rfc1912.zones
       ==/etc/named.caching-nameserver.conf
Port no                          ==53
Service & Daemon       == named
Configuration of DNS Server
In DNS Server System
Check & Change Hostname = vi /etc/hosts
                                   
                                                 = vi /etc/sysconfig/network
Check  S/W
Yum remove bind* cach* -y
Yum install bind* cach* -y
Enter into Config file (1) to set Forward Lookup Zone(FLZ) & Reverse Lookup Zone(RLZ)
vi  /etc/named.rfc1912.zones
:set nu
From 21st line copy 11 lines i.e; 11yy & paste them at last line(Shift g & p)
& change parameters from 50th-60th lines
i.e; zone “iiit.com” IN {
          type master;
          file “for.satish”;
          allow-update{none;};
          };
Zone “0.168.192.in-addr.arpa” IN{
          Type master;
          File “rev.satish”;
          Allow-update{none;};
};
:wq(save & quit).
Copy & Configure FLZ & RLZ
 cd /var/named/chroot/var/named
To copy FLZ
cp –p localhost.zone for.satish
To copy RLZ
cp –p named.local rev.satish
To Configure FLZ
vi for.satish
SOA  server.iiit.com.
NS    server.iiit.com.
Master        A       192.168.0.254
: wq (save & exit).
To Configure RLZ
vi rev.satish
                   SOA  server.iiit.com.
                  
                   NS     server.iiit.com.
254             PTR  server.iiit.com
Note: In this file replace local host with FQDN
i.e. :1, $s/localhost/server.iiit.com.
: wq (save & exit).
Provide Self System IP in resolv file
vi /etc/resolv.conf
nameserver 192.168.0.254
In config file (2) provide Self & Client systems ip
vi /etc/named.caching-nameserver.conf
: set nu
In 15 th line no. provide self system ip
In 23 rd & 32 nd line no’s provide client ip’s 192.168.0.0/24
: wq (save & exit).
Restart service to activate changes
Service named restart
Chkconfig named on
To check try to dig FLZ
dig hostname
dig server.iiit.com
To check RLZ
dig –x ip
dig –x 192.168.0.254
Note: If the answer comes “1” DNS is configured correctly & if answer comes “0” DNS is not configured properly.
To check from Linux client provide DNS IP in dns file
i.e.;    vi /etc/resolv.conf
         
          192.168.0.254
         
          : wq
To check FLZ
dig hostname of DNS
To check RLZ
dig –x .
To check from Windows client
In windows client, provide dns ip in TCP/IP, primary dns column -192.168.0.254.
To check in Windows
Go to start – run – cmd
nslookup server.iiit.com (FLZ)
nslookup 192.168.0.254(RLZ)

Comments:

Post a Comment

Subscribe to Post Comments [Atom]





<< Home

This page is powered by Blogger. Isn't yours?

Subscribe to Posts [Atom]