1:14 DNS服务
______________________________________________________________________________
vim /etc/sysconfig/network
dns.extmail.org
安装DNS软件包
yum -y install bind bind-chroot caching-nameserver
cd /var/named/chroot/etc/
cp -p named.caching-nameserver.conf named.conf
vim named.conf
forwarders { 202.106.0.20; };
15 listen-on port 53 { any; };
27 allow-query { any; };
28 allow-query-cache { any; };
37 match-clients { any; };
38 match-destinations { any; };
vim named.rfc1912.zones
zone "extmail.org" IN {
type master;
file "t.zheng";
allow-update { none; };
};
zone "0.168.192.in-addr.arpa" IN {
type master;
file "t.fan";
allow-update { none; };
};
cd /var/named/chroot/var/named/
cp -p named.zero t.zheng
cp -p named.zero t.fan
vim t.zheng
$TTL 86400
@ IN SOA extmail.org. root.extmail.org. (
42 ; serial (d. adams)
3H ; refresh
15M ; retry
1W ; expiry
1D ) ; minimum
IN NS dns.extmail.org.
IN MX 5 mail.extmail.org.
dns IN A 192.168.0.100
mail IN A 192.168.0.105
vim t.fan
$TTL 86400
@ IN SOA extmail.org. root.extmail.org. (
42 ; serial (d. adams)
3H ; refresh
15M ; retry
1W ; expiry
1D ) ; minimum
IN NS dns.extmail.org
IN MX 5 mail.extmail.org.
100 IN PTR dns.extmail.org.
105 IN PTR mail.extmail.org.
service named start
chkconfig named on
vim /etc/resolv.conf
nameserver 192.168.0.100
______________________________________________________________________________
转载于:https://blog.51cto.com/shancg/896932