/chroot/var/named/kangta.com.zone /var/named/
编辑正向解析文档
vi /var/named/kangta.com.zone
该文件不需要修改,可直接使用
用于将kangta.com解析成IP地址192.168.1.142
详细内容
$ TTL 86400 #允许客户端缓存来自查询数据的默认时间
$ ORIGIN kangta.com. #此行可省略,注意后面有.
@ IN SOA @ root (
42 ;serial number or serial adams
3H ;refresh
15M ;retry
1W ;expire
1D ) ;minimum
IN NS @
IN MX 8 mail.kangta.com #邮件使用 MX 8为8级优先
mail IN A 192.168.1.142
www IN A 192.168.1.142 #添加A记录--www
blog IN A 192.168.1.142
sns IN A 192.168.1.142
pop3 IN CNAME mail.kangta.com #新建别名
smtp IN CNAME mail.kangta.com
建立反向解析文档
192.168.1.42到kangta.com反向解析文件
named.loca 模版
cp /var/named/named.local /var/named/chroot/var/named/1.168.192.zone
建立软链接
ln -s /var/named/chroot/var/named/1.168.192.zone /var/name/
vi /var/named/1.168.192.zone
详细内容
$TTL 86400
@ IN SOA kangta.com. root.kangta.com. (
42 ;serial
28800 ;refres
14400 ;retry
3600000 ;expire
86400 ) ;minimum
IN NS kangta.com.
108 IN PTR www.kangta.com. #注意后面有.
253 IN PTR mail.kangta.com.
修改域文件(包括正向和反向)的所有者
chown named.named /var/named/*
chown named.named /var/named/chroot/var/named/*
chown named.named /etc/named.conf
chown named.named /var/named/chroot/etc/named.conf
启用named服务
server named start
本文出自 “连锐鹏” 博客,请务必保留此出处http://kangta.blog.51cto.com/1198945/434941
|