linux as 4 dns

常见服务实验总结
 
 
 
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
修改如下
姝e���哄��
 
vi 192.168.1.rev
x 修改如下
�����哄��
 
/etc/init.d/named start
 
chkconfig �Clevel named on
 
到此一个简单的 dns 就做完了 ^_^ 
 
测试 dns
test
 
OK dns 搞定 ^_^  ….

你可能感兴趣的:(linux,职场,系统,服务,休闲)