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

📄 027.htm

📁 LINUX的操作系统分析文件和使用文件
💻 HTM
字号:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"><!-- saved from url=(0056)http://data.km169.net/wsxx/showjq.asp?id=1335&type=LINUX --><html><head><title>New Page 1</title><meta content="text/html; charset=gb2312" http-equiv="Content-Type"><meta content="Microsoft FrontPage 3.0" name="GENERATOR"><meta content="FrontPage.Editor.Document" name="ProgId"><!--webbot bot="HTMLMarkup" startspan TAG="XBOT" --></SCRIPT><!--webbot bot="HTMLMarkup" endspan--><style>A:link {	COLOR: #4444ff; TEXT-DECORATION: underline}A:visited {	COLOR: #4444ff; TEXT-DECORATION: underline}A:active {	TEXT-DECORATION: none}A:hover {	COLOR: #ff0000; TEXT-DECORATION: none}BODY {	COLOR: #505050; FONT-FAMILY: 宋体; FONT-SIZE: 9pt}TD {	FONT-FAMILY: 宋体; FONT-SIZE: 9pt}TD.a {	FONT-FAMILY: 宋体; FONT-SIZE: 9pt}TD.b {	FONT-FAMILY: 宋体; FONT-SIZE: 11pt; font-color: #ff0000}.other1 {	FONT-SIZE: 9pt; LETTER-SPACING: 0px; LINE-HEIGHT: 18px}.other2 {	FONT-SIZE: 10.5pt}</style></head><body bgColor="#FFFFFF" leftMargin="7" topMargin="7"><hr SIZE="0"><p><b><font color="#fe3a42">标题: ■&nbsp;</font><font color="#9b004e"> </font>DNS HOWTO 中译版 : 维护工作</b><br>姓名 :Nicolai Langfeldt<br>Email:<br>地址 :<br>转摘 :http://member.netease.com/</p><p align="center"><a href="linux.htm">返回</a></p><hr SIZE="0"><p><br><br>6. 维护工作 <br>维持它的运作. <br><br>维持它们的继续执行之外,对於 named 你还有个维护的任务得要做.那就是维持 root.cache 档案的更新.最简单的方法是使用 dig 程式,首先不加任何参数执行 dig 程式,你将会取得从你自己伺服器得到的 root.cache.然後以 dig @rootserver . ns 查问所列出的根伺服器其中之一.你将会注意到这份输出看起来非常地像一个 root.cache 档案,除了一堆额外的数字以外.这些数字不会有什麽妨碍.把它存放到档案里(dig @e.root-servers.net . ns &gt;root.cache.new)并且用它来取代原本旧的 root.cache 档案. <br><br>取代了原先的档案之後要记得重新启动 named 程式. <br><br>Al Longyear 寄给我这个指令稿,它可以自动执行来更新 named.cache,为它安装个 crontab 项目然後忘了它.这个指令稿假设你的电子邮件可以运作而且 `hostmaster' 这个邮件别名有定义.你应该修订它以便符合你的设定. <br><br><br>-------------------------------------------------------------------------------- <br><br>#!/bin/sh <br># <br># Update the nameserver cache information file once per month. <br># This is run automatically by a cron entry. <br># <br>( <br>echo &quot;To: hostmaster &lt;hostmaster&gt;&quot; <br>echo &quot;From: system &lt;root&gt;&quot; <br>echo &quot;Subject: Automatic update of the named.boot file&quot; <br>echo <br><br>export PATH=/sbin:/usr/sbin:/bin:/usr/bin: <br>cd /var/named <br><br>dig @rs.internic.net . ns &gt;root.cache.new <br><br>echo &quot;The named.boot file has been updated to contain the following information:&quot; <br>echo <br>cat root.cache.new <br><br>chown root.root root.cache.new <br>chmod 444 root.cache.new <br>rm -f root.cache.old <br>mv root.cache root.cache.old <br>mv root.cache.new root.cache <br>ndc restart <br>echo <br>echo &quot;The nameserver has been restarted to ensure that the update is complete.&quot; <br>echo &quot;The previous root.cache file is now called /var/named/root.cache.old.&quot; <br>) 2&gt;&amp;1 | /usr/lib/sendmail -t <br>exit 0 <br><br><br>-------------------------------------------------------------------------------- <br><br><br>有些人可能用 ftp 从 Internic 得到 root.cache 档案.请不要用 ftp 来更新 root.cache,上面提到的方法更为便利. </p><hr SIZE="0"><p align="center"><a href="linux.htm">返回</a></p></body></html>

⌨️ 快捷键说明

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