欢迎来到天天文库
浏览记录
ID:15384589
大小:78.00 KB
页数:8页
时间:2018-08-03
《7.dns域名服务器配置》由会员上传分享,免费在线阅读,更多相关内容在行业资料-天天文库。
1、DNS域名服务器的配置与测试第一台linux中,IP地址设为192.168.座号.1/24,第二台linux的IP设为192.168.座号.3/24假设本示例中的座号为11,则IP地址为192.168.11.1/24及192.168.11.3/24[root@www~]#rpm-qbind//检查DNS服务器软件包是否安装bind-9.2.4-28.el4[root@www~]#rpm-qbind-chroot//检查安全增强工具是否安装bind-chroot-9.2.4-28.el4[root@www~]#rpm-qca
2、ching-nameserver//检查高速缓存DNS服务器的基本配置文件caching-nameserver-7.3-3[root@www~]#rpm-qbind-utils//检查DNS测试工具工具bind-utils-9.2.4-28.el4//以上结果表明DNS相关的软件都已经安装,如果没有安装则需要使用安装光盘进行安装。安装的方法参考教材。1.配置主DNS服务器[root@www~]#vi/etc/named.conf//使用vi编辑器打开bind主配置文件/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-sourc
4、e*directivebelow.PreviousversionsofBINDalwaysasked*questionsusingport53,butBIND8.1usesanunprivileged*portbydefault.*///query-sourceaddress*port53;};////acachingonlynameserverconfig//controls{inet127.0.0.1allow{localhost;}keys{rndckey;};};zone"."IN{typehint;file"na
5、med.ca";};zone"localdomain"IN{typemaster;file"localdomain.zone";allow-update{none;};};zone"localhost"IN{typemaster;file"localhost.zone";allow-update{none;};};zone"0.0.127.in-addr.arpa"IN{typemaster;file"named.local";allow-update{none;};};zone"0.0.0.0.0.0.0.0.0.0.0
6、.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.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;};在此位置加
7、上这两段,在主配置文件/etc/named.conf中添加正向和反向区域声明。};zone"mlx.com"IN{typemaster;file"mlx.com.zone";};zone"11.168.192.in-addr.arpa"IN{typemaster;file"192.168.11.zone";};include"/etc/rndc.key";:qw67,1底端[root@wwwnamed]#cd/var/named/chroot/var/named///进入DNS配置文件主目录[root@wwwnamed]#
8、ll总用量72drwxrwx---2namednamed40962004-08-26data-rw-r--r--1namednamed1982004-08-26localdomain.zone-rw-r--r--1namednamed1952004-08-26localhost.zone-rw-r--r
此文档下载收益归作者所有