⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 028.htm

📁 尝试使用有意义的结构与组织
💻 HTM
字号:
<HTML><HEAD><meta http-equiv="Content-Type" content="text/html; charset=GB2312"><TITLE>-->Linux HowTo 中译版-->DNS HOWTO 中译版 : Bind version 8</TITLE>
<META NAME="keywords" CONTENT=" Linux HowTo 中译版 DNS HOWTO 中译版 : Bind version 8">
<META NAME="description" CONTENT=" - Linux HowTo 中译版 - DNS HOWTO 中译版 : Bind version 8">

<style>
<!--
#page {position:absolute; z-index:0; left:0px; top:0px}
.tt3 {font: 9pt/12pt "宋体"}
.tt2 {font: 12pt/15pt "宋体"}
a {text-decoration:none}
a:hover {color: blue;text-decoration:underline}
-->
</style>
</HEAD>
<body text="#000000" aLink=#9900ff link=#006699 vLink=#006699 bgcolor="#FFFFFF" leftmargin="3" topmargin="3" marginheight="3" marginwidth="3">
<TABLE WIDTH="100%" CELLPADDING=10 CELLSPACING=0 BORDER=0>
<TR>
<TD CLASS="tt3" VALIGN="top" width="8%"  bgcolor="#e0e0e0"><strong><A HREF="029.htm">后一页</A><BR>
<A HREF="027.htm">前一页</A><BR>

<A HREF="index.html">回目录</A><BR>
<A HREF="../../../../index.htm">回首页</A><BR>
</strong>
</TD>
<TD class="tt2" bgcolor="#F5F8F8" width="84%"><center><B><FONT style="FONT-SIZE: 16.5pt" COLOR="#FF6666" FACE="楷体_GB2312">DNS HOWTO 中译版 : Bind version 8</FONT></B></center>
<hr color="#EE9B73" size="1" width="94%">
姓名:Nicolai Langfeldt<br>
Email:<br>
地址 :<br>
转摘 :http://member.netease.com/</p>
<BR>
<BR>
<hr SIZE="0">
<BR>
<p><br>
<br>
7. Bind version 8 <br>
Bind version 8 是最新的 bind 技术.我还没有尝试使用,但 David E. Smith
&lt;dave@bureau42.ml.org&gt; 有.他写了这小节的其馀部份. <br>
<br>
没有太多的不同.除了使用 named.conf 而不是 named.boot,
其馀都相同.而且 bind 8 包含了一个 perl
指令稿来将旧格式的档案转换成新的.例如一份暂存专用名称伺服器的
named.boot (旧格式): <br>
<br>
<br>
<br>
-------------------------------------------------------------------------------- <br>
<br>
directory /var/named <br>
cache . root.hint <br>
primary 0.0.127.IN-ADDR.ARPA 127.0.0.zone <br>
primary localhost localhost.zone <br>
<br>
<br>
-------------------------------------------------------------------------------- <br>
<br>
<br>
在指令列下,於 bind8/src/bin/named 目录中键入: <br>
<br>
<br>
<br>
-------------------------------------------------------------------------------- <br>
<br>
named-bootconf.pl &lt; named.boot &gt; named.conf <br>
<br>
<br>
-------------------------------------------------------------------------------- <br>
<br>
<br>
这会产生 named.conf: <br>
<br>
<br>
<br>
-------------------------------------------------------------------------------- <br>
<br>
// generated by named-bootconf.pl <br>
<br>
options { <br>
directory &quot;/var/named&quot;; <br>
}; <br>
<br>
zone &quot;.&quot; { <br>
type hint; <br>
file &quot;root.hint&quot;; <br>
}; <br>
<br>
zone &quot;0.0.127.IN-ADDR.ARPA&quot; { <br>
type master; <br>
file &quot;127.0.0.zone&quot;; <br>
}; <br>
<br>
zone &quot;localhost&quot; { <br>
type master; <br>
file &quot;localhost.zone&quot;; <br>
}; <br>
<br>
<br>
-------------------------------------------------------------------------------- <br>
<br>
<br>
它将 named.boot 中的每样东西都转换过来,然而它并未加入所有 bind 8
所允许的新强化及配置选项.这里有份较完整的 named.conf
做同样的事,但是效率更好一点. <br>
<br>
<br>
<br>
-------------------------------------------------------------------------------- <br>
<br>
// This is a configuration file for named (from BIND 8.1 or later). <br>
// It would normally be installed as /etc/named.conf. <br>
// The only change made from the `stock' named.conf (aside from this <br>
// comment :) is that the directory line was uncommented, since I <br>
// already had the zone files in /var/named. <br>
<br>
options { <br>
directory &quot;/var/named&quot;; <br>
check-names master warn; /* default. */ <br>
datasize 20M; <br>
}; <br>
<br>
zone &quot;localhost&quot; IN { <br>
type master; <br>
file &quot;localhost.zone&quot;; <br>
check-names fail; <br>
allow-update { none; }; <br>
allow-transfer { any; }; <br>
}; <br>
<br>
zone &quot;0.0.127.in-addr.arpa&quot; IN { <br>
type master; <br>
file &quot;127.0.0.zone&quot;; <br>
check-names fail; <br>
allow-update { none; }; <br>
allow-transfer { any; }; <br>
}; <br>
<br>
zone &quot;.&quot; IN { <br>
type hint; <br>
file &quot;root.hint&quot;; <br>
}; <br>
<br>
<br>
-------------------------------------------------------------------------------- <br>
<br>
<br>
bind8/src/bin/named/test
里有这个□例,以及领域档案的拷贝,许多人可以直接拿来修改使用.
<br>
<br>
领域档案及 root.hint (root.cache) 完全相同,更新它们的指令也是. </p>
<BR>
<hr color="#EE9B73" size="1" width="94%">

</TD>
<TD CLASS="tt3" VALIGN="bottom" width="8%"  bgcolor="#e0e0e0"><strong><A HREF="029.htm">后一页</A><BR>
<A HREF="027.htm">前一页</A><BR>

<A HREF="index.html">回目录</A><BR>
<A HREF="../../../../index.htm">回首页</A><BR>
</strong>
</TD>
</TR>
</table>
</BODY></HTML>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -