简单了解DNS服务器以及配置最简单DNS
作者 佚名技术
来源 Linux系统
浏览
发布时间 2012-05-02
zone “135.168.192.in-addr.arpa” { type master; file “135.168.192.zone”; }; >>>>>> 然后换目录, [root@bogon named]# pwd /var/named/chroot/var/named cp -a localhost.zone yuan.org.zone cp -a localhost.zone 135.168.192.zone [root@bogon named]# ll 总计 80 -rw-r—– 1 root named 231 05-06 09:49 135.168.192.zone drwxrwx— 2 named named 4096 05-06 06:39 data -rw-r—– 1 root named 198 01-21 20:27 localdomain.zone -rw-r—– 1 root named 195 01-21 20:27 localhost.zone -rw-r—– 1 root named 427 01-21 20:27 named.broadcast -rw-r—– 1 root named 1892 01-21 20:27 named.ca -rw-r—– 1 root named 424 01-21 20:27 named.ip6.local -rw-r—– 1 root named 468 05-06 06:23 named.local -rw-r—– 1 root named 427 01-21 20:27 named.zero drwxrwx— 2 named named 4096 2004-07-27 slaves -rw-r—– 1 root named 233 05-06 09:49 yuan.org.zone 每一个参数都看清楚有的是有点点的~DNS里面的点点是有特殊意义,我把鸟哥的搞来~嘿嘿 Testing Save your zone files, make sure you have the correct permissions and check the syntax using named-checkzone :
named-checkzone hughes.lan hughes.lan.zonevi yuan.org.zone $TTL 86400 @ IN SOA ns.yuan.org. root ( 42 ; serial (d. adams) 3H ; refresh 15M ; retry 1W ; expiry 1D ) ; minimum IN NS ns.yuan.org. IN A 192.168.135.129 ns IN A 192.168.135.129 vi 135.168.192.zone $TTL 86400 135.168.192.in-addr.arpa. IN SOA ns.yuan.org. root ( 42 ; serial (d. adams) 3H ; refresh 15M ; retry 1W ; expiry 1D ) ; minimum IN NS ns.yuan.org. 2 IN PTR ns.yuan.org. 这里要注意,我发现不是很多的文章有提醒到这个.即使有,也很容忽略 上面的 2 IN PTR ns.yuan.org. 数字是代表你的ip的一位 例如192.168.100.100,数字就是100,或者192.168.100.1 就是1 要命的是这个东东不会在message里面发现…我就这样….搞了一个下午…排错 了数十次,…无奈的很..接受的 俺很粗心的现实 ———– 完成了设定后,就是启动 /etc/init.d/named restart ———- 处理client客户端 echo “nameserver 192.168.135.129″ > /etc/resolv.conf然后nslookup ns.yuan.org ———- 最普遍的原因 selinux没关 vi /etc/selinux/selinux/config # This file controls the state of SELinux on the system. # SELINUX= can take one of these three values: # enforcing - SELinux security policy is enforced. # permissive - SELinux prints warnings instead of enforcing. # disabled - SELinux is fully disabled. SELINUX=disabled ——————————这条东西改为disabled # SELINUXTYPE= type of policy in use. Possible values are: # targeted - Only targeted network daemons are protected. # strict - Full SELi |
凌众科技专业提供服务器租用、服务器托管、企业邮局、虚拟主机等服务,公司网站:http://www.lingzhong.cn 为了给广大客户了解更多的技术信息,本技术文章收集来源于网络,凌众科技尊重文章作者的版权,如果有涉及你的版权有必要删除你的文章,请和我们联系。以上信息与文章正文是不可分割的一部分,如果您要转载本文章,请保留以上信息,谢谢! |
你可能对下面的文章感兴趣
上一篇: dhcp与nis下一篇: Linux下巧妙地构建DHCP服务器的妙招!!!
关于简单了解DNS服务器以及配置最简单DNS的所有评论