Linux下源代码编译bind9.6安装和配置DNS服务器_linux下dns服务器配置

其他范文 时间:2020-02-28 17:50:46 收藏本文下载本文
【www.daodoc.com - 其他范文】

Linux下源代码编译bind9.6安装和配置DNS服务器由刀豆文库小编整理,希望给你工作、学习、生活带来方便,猜你可能喜欢“linux下dns服务器配置”。

Linux下源代码编译bind9.6安装和配置DNS服务器

Linux下源代码编译bind9.6安装和配置DNS服务器

http://www.daodoc.comC“ {

58.16.0.0/16;

xx.xx.xx.xx/xx;

}

allow-recursion

设定哪台主机可以进行递归查询。如果没有设定,缺省是允许所有主机进行递归查询。注意禁止一台主机的递归查询,并不能阻止这台主机查询已经存在于服务器缓存中的数据。recursion

如果是yes,并且一个DNS询问要求递归,那么服务器将会做所有能够回答查询请求的工作。如果recursion是off的,并且服务器不知道答案,它将会返回一个推荐(referral)响应。默认值是yes。注意把recursion设为no,不会阻止用户从服务器的缓存中得到数据,它仅仅

阻止新数据作为查询的结果被缓存。服务器的内部操作还是可以影响本地的缓存内容,如NOTIFY地址查询。

1.递归查询:

一般客户机和服务器之间属递归查询,即当客户机向DNS服务器发出请求后,若DNS服务器本身不能解析,则会向另外的DNS服务器发出查询请求,得到结果后转交给客户机;

2.迭代查询(反复查询):

一般DNS服务器之间属迭代查询,如:若DNS2不能响应DNS1的请求,则它会将DNS3的IP给DNS2,以便其再向DNS3发出请求;

举例:比如学生问老师一个问题,王老师告诉他答案这之间的叫递归查询。这期间也许王老师也不会,这时王老师问张老师,这之间的查询叫迭代查询!

不能在父域里面设定子域主机的A记录,因为dns查询过程是先查询父域的,遇到子域的主机就自动通过NS记录转到子域区文件里面去查询了。

dns查询过程:以查询[url],而你有 ns1與 ns2 兩台 server。

那,你必需從.com 的權威伺服器授權給你,其設定或類似如此:

[Copy to clipboard] []CODE:

$ORIGIN abc.com.@ IN NS ns1.abc.com.@ IN NS ns2.abc.com.ns1 IN A 1.2.3.4

ns2 IN A 1.2.3.5

不過,既然 SOA 是自己的話,那事實上,我可以改變 ns 或增加 ns 授權:

[Copy to clipboard] []CODE:

$ORIGIN abc.com.sub1 IN NS ns1.sub1.abc.com.sub1 IN NS ns2.sub1.abc.com.ns1.sub1 IN A 4.3.2.1

ns2.sub1 IN A 4.3.2.2

然而,不同版本的 resolver,對最終的 ns 判定是不一樣的:

bind9 是以 abc.com 的權威主機的 ns 為依據,若找不到,那就沒結果。

而之前的版本,則可退而求次,以 com.裡關於 abc.com 的 ns 為答案。

aclslave_servers { 192.168.0.2;192.168.0.3;};

zone ”mydomain.com“ {

type master;

file ”mydomain.com.zone“;

notify yes;

allow-transfer { slave_servers;};

also-notify { slave_servers;};

};

notify

If yes(the default), DNS NOTIFY meages are sent when a zone the server is authoritative for changes, see Section 3.3.The meages are sent to the servers listed in the zone’s NS records(except the master server identified in the SOA MNAME field), and to any servers listed in the also-notify option.If explicit, notifies are sent only to servers explicitly listed using also-notify.If no, no notifies are sent.The notify option may also be specified in the zone statement, in which case it overrides the options

notify statement.It would only be neceary to turn off this option if it caused slaves to crash.6.2.14.6

also-notify

Defines a global list of IP addrees of name servers that are also sent NOTIFY meages whenever

a fresh copy of the zone is loaded, in addition to the servers listed in the zone’s NS records.This helps to ensure that copies of the zones will quickly converge on stealth servers.If an also-notify list is given in a zone statement, it will override the options also-notify statement.When a zone notify statement is set to no, the IP addrees in the global also-notify list will not be sent NOTIFY meages for that zone.The default is the empty list(no global notification list).使用notify指令会自动通知所有这个域的所有在ns记录上的机器,also-notify指令可以用来通知所有不在ns记录上的dns服务器。

DNS服务器的配置实验报告

实验名称: Win server 2003下管理配置DNS服务器一.环境运行环境:Microsoft Virtual PC 操作系统:TomatoWin2003_ENTv1.0 二.实验目的1.掌握DNS服务器的概念DNS是域名服务器(Dom......

Linux下Apache服务器的安装和配置

Linux服务器配置与管理实训指导书【实验8】 Apache服务器的安装和配置一、实验目的:1.掌握Apache Web服务器的安装和配置。 2.使用虚拟主机在同一台服务器上架设多个网站。二......

windows下dns服务器的搭建

搭建dns服务器DNS 的概念DNS 在广域网上是一个不可缺少的非常重要的服务。DNS(do main name system)域名系统,能够将域名解析为 IP 地址,也能 把 IP 地址解析为域名,正向解析为......

Linux的使用与 DNS 服务器的配置与管理

一、实验目的1.DNS 的概念和原理 2.DNS 服务器的安装3.DNS 服务器的配置与管理 4.DNS 和 WINS 的结合使用5.了解Linux操作系统,学会IP配置,office软件和万维网的使用,以及与Win......

WWW服务器的安装与配置

实验一 WWW服务器的安装与配置一、实验目的1.掌握WWW服务器的安装与配置方法。2.掌握默认Web站点、管理Web站点和添加新的Web站点的设置。3.掌握一台WWW服务器发布多个网站(在W......

下载Linux下源代码编译bind9.6安装和配置DNS服务器word格式文档
下载Linux下源代码编译bind9.6安装和配置DNS服务器.doc
将本文档下载到自己电脑,方便修改和收藏。
点此处下载文档

文档为doc格式

热门文章
整站推荐
    点击下载本文