Monday, February 6, 2012

DNS configuration on CentOS /RedHat 6.2

Step 1
#ifconfig

 Step 2
# vi /etc/hosts
Step3
# vi /etc/sysconfig/network

Step 4
#vi /etc/resolv.conf
Step 5
#service network restart

Step 6
#yum install bind* -y

Step 7
#vi /etc/named.conf
 Step 8
#vi /etc/named.rfc1912
Step 9
#cd /var/named/
#ls
#cp named.localhost forward.zone
#cp named.loopback reverse.zone

Step 10
# vi forward.zone 

Step 11
#vi reverse.zone
Step 12
# dig dns.mydns-setup.com


7 comments:

shahi said...

hi there.

i found that you configured dns in vmware. now i need a help that is about vmware networking. suppose 1 dns linux server and 3 client pc is being ready for test the connection but what will be the network setting for them in vmware network. the dsn will connect the client through a router or a switch. i the setting. would like to help me?

Unknown said...

hi shahi

can get in touch with gtalk rajatjpatel@gmail.com

shahi said...

sure....why not..

Khandakershahi@gmail.com

Hafiz Haider said...

Getting error in resolving hostname .....!!!

Look this link that works for me 100%% in configuring Bind on centos 6.2..

http://broexperts.com/2012/03/linux-dns-bind-configuration-on-centos-6-2/

sai said...

hi rajatpatal yours good then broexperts configuration. i want to know whether you can ping your dns hostname from outside the vmware network. if its work . yours configuration is right. kindly let me know it.whether you can ping from outside

Unknown said...

Yes its work :)

Unknown said...

Thanks great job.