linux RedHat as5 下DNS安装于配置
作者 佚名技术
来源 Linux系统
浏览
发布时间 2012-05-01
; Retry 3600000 ; Expire 86400 ) ; Minimum IN NS www.yan.com. 101 IN PTR www.yan.com. 修改权限 [root@yan named]# chown named yan.com* [root@yan named]# chgrp named yan.com* 测试 [root@yan named]# service named restart [root@yan named]# nslookup > www.yan.com Server: 192.168.10.100 Address: 192.168.10.100#53 Name: www.yan.com Address: 192.168.10.101 > 192.168.10.101 Server: 192.168.10.100 Address: 192.168.10.100#53 101.10.168.192.in-addr.arpa name = www.yan.com. @@@@@@@@@@@@@@@@@一个ip对应多个域名@@@@@@@@ 如192.168.10.101对应域名为www.yan.com和www.zhu.com [root@yan named]# vi /var/named/chroot/etc/named.rfc1912.zones zone "yan.com" IN { type master; file "yan.com"; allow-update { none;}; }; zone "zhu.com" IN { //再添加一个正向记录 type master; file "zhu.com"; allow-update { none;}; }; zone "10.168.192.in-addr.arpa" IN { type master; file "yan.com1"; allow-update { none;}; }; [root@yan named]# vi yan.com1 $TTL 86400 @ IN SOA www.yan.com. root.www.yan.com. ( 1997022700 ; Serial 28800 ; Refresh 14400 ; Retry 3600000 ; Expire 86400 ) ; Minimum IN NS www.yan.com. 101 IN PTR www.yan.com. 101 IN PTR www.zhu.com. 修改权限 [root@yan named]# chgrp named zhu.com [root@yan named]# chown named zhu.com [root@yan named]# service named restart [root@yan named]# nslookup > www.yan.com Server: 192.168.10.100 Address: 192.168.10.100#53 Name: www.yan.com Address: 192.168.10.101 > www.zhu.com Server: 192.168.10.100 Address: 192.168.10.100#53 Name: www.zhu.com Address: 192.168.10.101 > 192.168.10.101 Server: 192.168.10.100 Address: 192.168.10.100#53 101.10.168.192.in-addr.arpa name = www.zhu.com. 101.10.168.192.in-addr.arpa name = www.yan.com. @@@@@@@@@@@@@@@@@一个域对应多个ip@@@@@@@@ www.yan.com对应192.168.10.101和192.168.10.102 [root@yan named]# vi /var/named/chroot/etc/named.rfc1912.zones zone "yan.com" IN { type master; file "yan.com"; allow-update { none;}; }; //删除原来添加的正向记录 zone "10.168.192.in-addr.arpa" IN { type master; file "yan.com1"; allow-update { none;}; }; [root@yan named]# vi yan.com $TTL 86400 @ IN SOA @ root ( 42 ; serial (d. adams) 3H ; refresh 15M ; retry 1W ; expiry 1D ) ; minimum |
凌众科技专业提供服务器租用、服务器托管、企业邮局、虚拟主机等服务,公司网站:http://www.lingzhong.cn 为了给广大客户了解更多的技术信息,本技术文章收集来源于网络,凌众科技尊重文章作者的版权,如果有涉及你的版权有必要删除你的文章,请和我们联系。以上信息与文章正文是不可分割的一部分,如果您要转载本文章,请保留以上信息,谢谢! |
你可能对下面的文章感兴趣
关于linux RedHat as5 下DNS安装于配置的所有评论