Linux4.0 DNS SERVER relevant config
C.ROOT-SERVERS.NET. 3600000 A 192.33.4.12 . 3600000 NS D.ROOT-SERVERS.NET. D.ROOT-SERVERS.NET. 3600000 A 128.8.10.90 . 3600000 NS E.ROOT-SERVERS.NET. E.ROOT-SERVERS.NET. 3600000 A 192.203.230.10 . 3600000 NS F.ROOT-SERVERS.NET. F.ROOT-SERVERS.NET. 3600000 A 192.5.5.241 . 3600000 NS G.ROOT-SERVERS.NET. G.ROOT-SERVERS.NET. 3600000 A 192.112.36.4 . 3600000 NS H.ROOT-SERVERS.NET. H.ROOT-SERVERS.NET. 3600000 A 128.63.2.53 . 3600000 NS I.ROOT-SERVERS.NET. I.ROOT-SERVERS.NET. 3600000 A 192.36.148.17 . 3600000 NS J.ROOT-SERVERS.NET. J.ROOT-SERVERS.NET. 3600000 A 192.58.128.30 . 3600000 NS K.ROOT-SERVERS.NET. K.ROOT-SERVERS.NET. 3600000 A 193.0.14.129 . 3600000 NS L.ROOT-SERVERS.NET. L.ROOT-SERVERS.NET. 3600000 A 198.32.64.12 . 3600000 NS M.ROOT-SERVERS.NET. M.ROOT-SERVERS.NET. 3600000 A 202.12.27.33 注意:”/var/named/named.ca” in save a 13 根区域文件. 7.[root@michael ~]# vi /etc/named.conf // // named.conf for Red Hat caching-nameserver // options { directory "/var/named"; dump-file "/var/named/data/cache_dump.db"; statistics-file "/var/named/data/named_stats.txt"; /* * If there is a firewall between you and nameservers you want * to talk to, you might need to uncomment the query-source * directive below. Previous versions of BIND always asked * questions using port 53, but BIND 8.1 uses an unprivileged * port by default. */ // query-source address * port 53; }; // // a caching only nameserver config // controls { inet 127.0.0.1 allow { localhost; } keys { rndckey; }; }; zone "." IN { type hint; file "named.ca"; }; zone "localdomain" IN { type master; file "localdomain.zone"; allow-update { none; }; }; zone "localhost" IN { type master; file "localhost.zone"; allow-update { none; }; }; zone "0.0.127.in-addr.arpa" IN { type master; file "named.local"; allow-update { none; }; }; zone "fung.com" IN { type master; file "fung.com.zone"; allow-update { none; }; }; zone "5.168.192.in-addr.arpa" { type master; file "192.168.5.rev"; allow-update { none; }; }; "/etc/named.conf" 77L, 1551C written 8.[root@michael ~]# named-checkconf [root@michael ~]# 9.[root@michael ~]# vi /var/named/fung.com.zone $TTL 86400 @ IN SQA michael.fung.com. root.fung.com. ( 2009080301 28800 14400 3600000 86400 )
@ IN NS michael.fung.com.
michael IN A 192.168.5.1 www IN A 192.168.5.1 mail IN A 192.168.5.2
ftp IN CNAME michael
@ IN MX 10 mail.fung.com. ~ ~ ~ "/var/named/fung.com.zone" [New] 20L, 433C written 10.[root@michael ~]# named-checkzone fung.com /var/named/fung.com.zone zone fung.com/IN: loaded serial 2009080301 OK 11.[root@michael ~]# vi /var/named/192.168.5.rev
$TTL 86400 @ IN SOA michael.fung.com. root.fung.com. ( 2009080301 28800 14400 3600000 86400 )
@ IN NS |
凌众科技专业提供服务器租用、服务器托管、企业邮局、虚拟主机等服务,公司网站:http://www.lingzhong.cn 为了给广大客户了解更多的技术信息,本技术文章收集来源于网络,凌众科技尊重文章作者的版权,如果有涉及你的版权有必要删除你的文章,请和我们联系。以上信息与文章正文是不可分割的一部分,如果您要转载本文章,请保留以上信息,谢谢! |