常见服务实验总结
 
 
 
DNS(陈建)
IPADRESS  192.168.1.2/24
HOSTNAME   serv2.jshlx.org
 
安装bind(第四张光盘),bind-chroot(第四张光盘),caching-nameserver(第一张光盘)
vi /etc/named.conf
复制以下内容
zone "localhost" IN {
type master;
file "localhost.zone";
allow-update { none; };
};
zone "0.0.127.in-addr.arpa" IN {
type master;
file "named.local";
allow-update { none; };
};
粘贴以上内容并作修改,修改如下
zone "jshlx.org" IN {
type master;
file "jshlx.org.zone";
allow-update { none; };
};
zone "1.168.192.in-addr.arpa" IN {
type master;
file "192.168.1.rev";
allow-update { none; };
};
 
cd /var/named/chroot/var/named
cp localhost.zone jshlx.org.zone
cp named.local 192.168.1.rev
 
 
vi jshlx.org.zone
修改如下
linux as 4 dns_职场
 
vi 192.168.1.rev
x修改如下
linux as 4 dns_服务_02
 
/etc/init.d/named start
 
chkconfig –level named on
 
到此一个简单的dns就做完了^_^ 
 
测试dns
linux as 4 dns_系统_03
 
OK dns搞定^_^  ….