Sie sind auf Seite 1von 6

DNS Configuration in RHEL 5 Step 1: set static ipaddress by using these commands system-config-network or ifconfig eth0 192.168.0.

254

Step 2:

Install all these following rpms

rpm -ivh bind-9.3.3-7.el5.i386.rpm rpm -ivh bind-chroot-9.3.4-9.P1.el5.i386.rpm rpm -ivh bind-devel-9.3.3-7.el5.i386.rpm rpm -ivh bind-libbind-devel-9.3.3-7.el5.i386.rpm rpm -ivh bind-libs-9.3.3-7.el5.i386.rpm rpm -ivh bind-sdb-9.3.3-7.el5.i386.rpm rpm -ivh caching-nameserver-9.3.3-7.el5.i386.rpm

Step 3:

cd /var/named/chroot/var/named/ cp localdomain.zone for.prasanna.com cp named.local rev.prasanna.com chown root:named for.prasanna.com chown root:named rev.prasanna.com

Step 4:

Edit the following files and add the respective lines in those vi /etc/sysconfig/network hostname=server.prasanna.com

vi /etc/sysconfig/network-scripts/ifcfg-eth0 peerdns=no

vi /etc/resolv.conf search prasanna.com nameserver 192.168.0.254 vi /etc/hosts 192.168.0.254

cd /var/named/chroot/etc cp named.caching-nameserver.conf named.conf chown root:named named.conf vi named.conf option{ listen-on pot 53{127.0.0.1; 192.168.0.254;};

allow-query{ localhost; 192.168.0.0/24;} match-clients {localhost; 192.168.0.0/24;}; match-destination {localhost; 192.168.0.0/24;};

vi /etc/named.rfc1912.zones

zone "prasanna.com" IN { type master; file "for.prasanna.com"; allow-update {none;}; };

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

Step 5: Edit for.prasanna.com and rev.prasanna.com in the respective location /var/named/chroot/var/named in the following way. for.prasanna.com

$TTL 86400 @ IN SOA server.prasanna.com. root.server.prasanna.com. ( 42 ; serial (d. adams) 3H ; refresh 15M ; retry 1W ; expiry 1D ) ; minimum

IN NS server.prasanna.com. server IN A 192.168.0.254 client8 IN A 192.168.0.108

client1 IN A 192.168.0.101 client2 IN A 192.168.0.102 client3 IN A 192.168.0.103 client4 IN A 192.168.0.104 client5 IN A 192.168.0.105 client6 IN A 192.168.0.106 client7 IN A 192.168.0.107

rev.prasanna.com

$TTL 86400 @ IN SOA server.prasanna.com. root.server.prasanna.com. ( 42 ; serial (d. adams) 3H ; refresh 15M ; retry 1W ; expiry 1D ) ; minimum IN NS server.prasanna.com. 254 IN PTR server.prasanna.com. 101 IN PTR client1.prasanna.com. 102 IN PTR client2.prasanna.com. 103 IN PTR client3.prasanna.com. 104 IN PTR client4.prasanna.com. 105 IN PTR client5.prasanna.com. 106 IN PTR client6.prasanna.com. 107 IN PTR client7.prasanna.com. 108 IN PTR client8.prasanna.com.

Step 6: service named restart chkconfig named on

dig -x 192.168.0.254

if you get all the four sections question, answer,additional, authority as 1, you got it. Otherwise, some check the steps properly.

Step 7: Client side: in station1.prasanna.com

just touch these files with the existing details vi /etc/resolv.conf search prasanna.com nameserver 192.168.0.254 vi /etc/hosts 192.168.0.254 server.prasanna.com 192.168.0.1 station1.prasanna.com dig -x 192.168.0.254

you should get the same sections like the server, Otherwise check the steps properly.

You might like:

Google Chrome 10.0.648.204 works good in RHEL6 YUM Server Configuration in RHEL 6 (Yellow Dog Updater Modified) FTP Method New in Red Hat Enterprise Linux 6 DHCP is working good in RHEL6

Hear this post

Posted by P N A Prasanna at 2:51 AM

Labels: Redhat, RHEL5 Configuration

14 Comments:
Pandiyan said...

Thanx. It is really a useful information.

December 31, 2008 5:01 AM

Cheran said...

Vow, I tried a lot. Finally I got it from your blog. Good work.

December 31, 2008 5:02 AM

Linux Avathar said...

Yes. I'm a linux admin. this is really useful. Thank you man.

January 2, 2009 11:40 PM

Govind Ravi Shankar said...

Yes good going...

January 2, 2009 11:41 PM

dr. rajender kumar said...

hey prasanna...u made me proud of you...thats a great information dear...i shall appreciate if you can help with NIS in same detailed manner... ...I am a trainer for IT-IMS and it helped me a lot for training others..

May 8, 2009 8:36 PM

PERLER said...

Nice,keep it up!!!!

June 19, 2009 4:52 AM

kool said...

Dear Sir,

Your are simplly great at one shot that configuratuin is worked

can you help me for LDAP server & web mail server on RHEL 5. My Email is rahulkuldharan@gmail.com

Thanks, rahul k.

July 13, 2009 5:55 AM

kool said...

Dear Sir,

Your are simplly great at one shot that configuratuin is worked

can you help me for LDAP server & web mail server on RHEL 5. My Email is rahulkuldharan@gmail.com

Thanks, rahul k.

July 13, 2009 5:55 AM

praveen said...

you are great dude.this configuration worked perfectly.

Thank you very much

April 19, 2010 2:41 AM

Anu said...

thanks

March 22, 2011 3:09 AM

Pranav said...

Thanks a lot. It was really very helpful.

April 6, 2011 9:10 AM

mahesh said...

u r great prassana.

May 4, 2011 4:16 AM

parag vyas said...

thanks first time i make a dns server with the help of your blog

April 26, 2012 12:04 AM

parag vyas said...

thanks it's really help full for me because first time i make a dns server

April 26, 2012 12:05 AM

Post a Comment

Newer Post Older Post Home

Subscribe to

Das könnte Ihnen auch gefallen