[root@svr5 ~]# vim /var/named/tedu.cn.zone $TTL 1D @ IN SOA @ admin.tedu.cn. (1 1D 1H 1W 3H ) @ NS svr5.tedu.cn.MX 5 mail.tedu.cn.A 192.168.4.100 svr5 A 192.168.4.5 mail A 192.168.4.100 * A 192.168.4.100
3)为邮件域163.com及相关站点提供解析服务
[root@svr5 ~]# vim /var/named/163.com.zone $TTL 1D @ IN SOA @ admin.tedu.cn. (1 1D 1H 1W 3H ) @ NS svr5.tedu.cn.MX 5 mail.163.com.A 192.168.4.100 mail A 192.168.4.100 * A 192.168.4.100
4)启动named服务
[root@svr5 ~]# service named restart Stopping named: [ OK ] Starting named: [ OK ] [root@svr5 ~]# chkconfig named on
5 配置客户端,确保域名解析正常
[root@pc205 ~]# vim /etc/resolv.conf //调整各客户机DNS设置 nameserver 192.168.4.5[root@pc205 ~]# host -t mx tedu.cn //确认tedu.cn的MX解析可用 tedu.cn mail is handled by 5 mail.tedu.cn. [root@pc205 ~]# host mail.tedu.cn mail.tedu.cn has address 192.168.4.100[root@pc205 ~]# host -t mx 163.com //确认163.com的MX解析可用 163.com mail is handled by 5 mail.163.com. [root@pc205 ~]# host mail.163.com mail.163.com has address 192.168.4.100