首 页 教育新闻课件中心论文中心教学教案试题中心语文专题综合下载技术教程公务员  
设为首页
加入收藏
联系我们
您当前的位置:中国教育资源网 -> 技术教程 -> 网络相关 -> 服务器 -> 域名服务器 -> 技术内容 退出登录 用户管理

DNS Cache 的一些小技巧汇总域名服务器教程

论文作者:佚名  论文来源:不详  论文发布时间:2006-6-19 17:58:33  论文发布人:chjchjchj

减小字体 增大字体

              摘要:DNS Cache 的一些小技巧汇总
最近有不少关于DNS Cache 的帖子,让我学到了不少技巧。汇总一下。

Q: 如何查看 BIND DNS Server 的 Cache : 

A: 在 bind 9 中,可以使用 rndc -dumpdb 命令来查看 DNS Cache,当然你的 rndc 要先配置好。这个命令会在 /var/named (这个目录是在 named.conf 文件中指定的)目录中生成 named_dump.db 文件。 

在 bind 8 下,可以试试用 kill -INT named_pid 。

Q: DNS Cache 的时间如何设置:

A: 在 bind 9 中,使用 TTL 参数来设置 DNS 默认的缓存时间,但要记住这个是你解析的域名在别人的 DNS 中的缓存时间。

Q: 在客户端如何清空 DNS Cache:

A: 在 Unix 下,DNS 客户端只是几个例程,负责转发和接受查询的功能,并不缓存。

在 Windows 2000 & XP 下: ipconfig /flushdns can clear the cache; 
ipconfig /displaydns can display the dns cache.

windows 下的 dns cache 是由 dns client 后台进程控制的,你可以在控制面板 -> 服务中将其关闭,这样 windows 就不会进行 dns 缓存,每次都将直接查询 dns server 。

Q: 在 DNS 服务器端如何清空 DNS Cache:

A: 最简单的方法就是重新启动 named 进程;当然也有不用重启的方法: rndc flush

 xbweifly 回复于:2003-06-19 16:41:09谢谢,希望多提供这样的技巧

 forrestrun 回复于:2003-06-20 11:19:07so good!!

 supereyes 回复于:2003-07-22 10:52:34[root@mail /etc]# rndc dumpdb
rndc: connect failed: connection refused

这个是怎么回事?
我启动bind是用/etc/init.d/named start

 阿骁 回复于:2003-07-23 15:35:31应该是 rndc 的配置有问题。你可以重新生成一个 rndc key ,然后再试看看。

 rayharris 回复于:2003-07-24 09:35:112000下的ipconfig /displaydns技巧很不错,挺实用的,谢谢!

 Lanchou 回复于:2004-05-13 11:07:03have configed the rndc ,usr rndc status to show:

root@dns02:/usr/local/bind-jail/sbin>./rndc status
number of zones: 14
debug level: 0
xfers running: 0
xfers deferred: 0
soa queries in progress: 0
query logging is ON
server is up and running

root@dns02:/usr/local/bind-jail/sbin>./rndc dumpdb 
but show noting.

Question:
1. How can i know dns cache function is enble?
2.  how can I enble or diable dns cache function ?

 sunnycn 回复于:2004-12-27 21:18:23[quote:313379be87="阿骁"]最近有不少关于DNS Cache 的帖子,让我学到了不少技巧。汇总一下。

Q: 如何查看 BIND DNS Server 的 Cache : 

A: 在 bind 9 中,可以使用 rndc -dumpdb 命令来查看 DNS Cache,当然你的 rndc 要先配置好。这个..........[/quote:313379be87]

版主的这个写的很漂亮。
如果版主在有时间的时候,能不能再完善一些。
谢谢!

 sunnycn 回复于:2004-12-29 22:38:19在bind 9中配置rndc  还是要好好的看看相关的文档的了。
在“精华区里面”有这样的帖子。
但是,按照上面的步骤配置的时候有些问题。

 littleice 回复于:2004-12-30 08:57:32这个贴精吧,我们也好找。

 liuzhy 回复于:2005-01-06 11:17:20[quote:1803933dc9="Lanchou"]have configed the rndc ,usr rndc status to show:

root@dns02:/usr/local/bind-jail/sbin>./rndc status
number of zones: 14
debug level: 0
xfers running: 0
xfers deferred: 0
soa queries in prog..........[/quote:1803933dc9]


1. you did not try to reslove any dns entry, so cache is empty.
2. Generally, any dns server is a dns cache server. I do not know how to disable it.

 liuzhy 回复于:2005-01-06 11:18:02[quote:e3674dcddc="Lanchou"]have configed the rndc ,usr rndc status to show:

root@dns02:/usr/local/bind-jail/sbin>./rndc status
number of zones: 14
debug level: 0
xfers running: 0
xfers deferred: 0
soa queries in prog..........[/quote:e3674dcddc]


1. you did not try to reslove any dns entry, so cache is empty.
2. Generally, any dns server is a dns cache server. I do not know how to disable it.

[] [返回上一页] [打 印] [收 藏]  
 ∷相关技术评论  (评论内容只代表网友观点,与本站立场无关!) [查看发表评论...]
 
 中国教育资源网免费技术教程下载中心-站内广告 站内广告 中国教育资源网免费技术教程下载中心-站内广告 
 中国教育资源网站内搜索 站内搜索 中国教育资源网站内搜索 
 

   
 中国教育资源网免费技术教程下载中心-栏目导航 栏目导航 中国教育资源网免费技术教程下载中心-栏目导航 
· Windows 9XMEXP · Windows NT20002003
· LinuxBSD · 系统综合
· IISApache · 硬件技术
· Web服务器 · FTP服务器
· 邮件服务器 · 域名服务器
· Windows服务器 · 代理服务器
· 服务器综合
 
中国教育资源网免费技术教程下载中心-相关教程  相关技术 中国教育资源网免费技术教程下载中心-相关教程
· 在 Windows Server
· 24招Windows系统精华
· [图文] Windows 2000 Serve
· DNS MX记录一定要放
· [图文] 再问关于制作外网访
· [原創] 簡單建立 dn
· 在FREEBSD 5.2上安装
· dns 感想之一域名服
· [组图] 給阿骁兄的賀禮二:
 中国教育资源网免费技术教程下载中心-本月热门教程 本月热门 中国教育资源网免费技术教程下载中心-本月热门教程 
 
 中国教育资源网免费技术教程下载中心-本日热门论文 本日热门 中国教育资源网免费技术教程下载中心-本日热门论文 
 
关于本站 - 网站帮助 - 免费课件 - 美容 - 绿色软件 - 软件下载 - 广告合作 - 下载声明 - 友情连接 - 网站地图 - 网站留言
浙ICP备06010405号 Email:cnkjz@163.com 技术支持:名流设计
版权所有 Copyright© 2002-2004 名流