欢迎来到天天文库
浏览记录
ID:49771349
大小:42.51 KB
页数:7页
时间:2020-03-04
《Lux操作系统下配置DNS服务器的方法介绍.doc》由会员上传分享,免费在线阅读,更多相关内容在行业资料-天天文库。
1、Linux操作系统下配置DNS服务器的方法介绍 有两台邮件服务器分别为192.168.1.1(windows下主机名为b.test.cn)和192.168.1.3(linux下主机名为a.test.com)。 在linux下配置DNS服务器,下面是配置过程中设置过的一些文件, /etc/hosts文件的具体内容如下: #Donotremovethefollowingline,orvariousprograms #thatrequirenetworkfunctionalitywillfail. 127.0.0.1localhost.localdomainlocalhost
2、fc4 192.168.1.3a.test.coma 192.168.1.1b.test.cnb /etc/host.conf文件: orderhosts,bind 表示先用hosts文件做解析,在用DNS解析 /etc/resolv.conf文件: ;generatedbyNetworkManager,donotedit! searchtest.com nameserver127.0.0.1 searchtest.cn nameserver192.168.1.1 nameserver61.144.56.100 /etc/named.conf文件: //
3、//named.confforRedHatcaching-nameserver // options{ directory"/var/named"; dump-file"/var/named/data/cache_dump.db"; statistics-file"/var/named/data/named_stats.txt"; /* *Ifthereisafirewallbetweenyouandnameserversyouwant *totalkto,youmightneedtouncommentthequery-source *directivebelow.P
4、reviousversionsofBINDalwaysasked *questionsusingport53,butBIND8.1usesanunprivileged *portbydefault. */ //query-sourceaddress*port53; }; // //acachingonlynameserverconfig // controls{ inet127.0.0.1allow{localhost;}keys{rndckey;}; }; zone"."IN{ typehint; file"named.ca"; }; zone"tes
5、t.com"IN{ typemaster; file"test.com"; allow-update{none;}; }; zone"1.168.192.in-addr.arpa"IN{ typemaster; file"192.168.1.rev"; allow-update{none;}; }; zone"test.cn"IN{ typemaster; file"test.cn"; allow-update{none;}; }; zone"0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0
6、.0.0.ip6.arpa"IN{ typemaster; file"named.ip6.local"; allow-update{none;}; }; zone"255.in-addr.arpa"IN{ typemaster; file"named.broadcast"; allow-update{none;}; }; zone"0.in-addr.arpa"IN{ typemaster; file"named.zero"; allow-update{none;}; }; include"/etc/rndc.key"; 在/var/name/test.
7、com文件下: $TTL86400 @INSOAa.test.com.root.a.test.com( 42;serial(d.adams) 3H;refresh 15M;retry 1W;expiry 1D);minimum INNSa.test.com. INMX10mail.test.com. aINA192.168.1.3 mailINA192.168.1.3 //其中root.a.test.com的含义是管理员
此文档下载收益归作者所有