Embed
Email

dns

Document Sample

Shared by: linzhengnd
Categories
Tags
Stats
views:
0
posted:
12/4/2011
language:
English
pages:
2
yum –y install bind* { bind, bind-utils, bind-chroot, }

yum –y install caching-nameserver





1.) first of all we have to declare a zone (i.e., forward lookup zone)



cd /var/named/chroot/etc



cp named.caching-nameserver.conf named.conf



chown root:named named.conf



vi named.conf



options {

listen-on port 53 { 127.0.0.1; 172.172.6.50; };

---------------------------------------------

---------------------------------------------

allow-query { localhost; 172.172.6.0/24; };

};

View localhost_resolver {

-----------------------

-----------------------

recursion yes;



zone "redhat.com" IN {

type master;

file "redhat.com.zone";

};



include “/etc/named.rfc1912.zones”;

};

--------

:wq



chkconfig named on

service named configtest

service named restart

2.) secondly, create zone file



cd /var/named/chroot/var/named



cp localdomain.zone redhat.com.zone



chown root:named redhat.com.zone



vi redhat.com.zone



$TTL

@ IN SOA server.redhat.com root.redhat.com (

42

3H

--

--

--

--

redhat.com. IN NS redhat.com.

redhat.com. IN A 172.172.6.50

# server IN CNAME redhat.com.

# www IN CNAME redhat.com.

:wq



3.) vi /etc/resolv.conf



search nameserver

172.172.6.50

:wq



chkconfig named on

service named configtest

service named restart



Related docs
Other docs by linzhengnd
Comment_organiser_une_manifestation_sportive
Views: 2  |  Downloads: 0
Report
Views: 0  |  Downloads: 0
professionalismprogramfinaldraft
Views: 0  |  Downloads: 0
Testing _ Certification
Views: 0  |  Downloads: 0
Community Art Murals
Views: 1  |  Downloads: 0
p1-9
Views: 3  |  Downloads: 0
By registering with docstoc.com you agree to our
privacy policy

You are almost ready to download!

You are almost ready to download!