荔园在线

荔园之美,在春之萌芽,在夏之绽放,在秋之收获,在冬之沉淀

[回到开始] [上一篇][下一篇]


发信人: georgehill (NCNS), 信区: Linux
标  题: DNS HOWTO 中译版-9(转寄)
发信站: BBS 荔园晨风站 (Tue Feb 20 12:44:22 2001), 站内信件

【 以下文字转载自 georgehill 的信箱 】
【 原文由 georgehill.bbs@smth.org 所发表 】
发信人: czlong (紫龙), 信区: Linux
标  题: DNS HOWTO 中译版-9(转寄)
发信站: BBS 水木清华站 (Sun Feb  4 15:49:12 2001)


9. 常见问题解答
本节中我将列出一些关於 DNS 以及本文件最常被提出的问题.还有解答 :-) 在写
信给我前请先阅读过本节.


如何在防火墙之内使用 DNS ?
一些提示: `forwarders', `slave', 以及参考本文件最後面的文献列表.


如何利用 DNS 提供的可用位址於某一服务,如 www.busy.site,以获得负荷平衡
或类似的效果?
为 www.busy.site 加上许多 A 记录,而且使用 bind 4.9.3 或以後的版本.这样
 bind 会使用 round-robin 演算法找寻答案.这不能在更早版本的 bind 上工作



我想在一封闭的 Intranet 上架设 DNS.我该怎麽做?
把暂存档案丢掉只留区域档案.这也表示你将不需要更新暂存档案.


我的系统没有 ndc 程式.我该怎麽办?
你的系统安装过一旧的,可能过期的 bind 程式.如果安全性对你很重要: 立刻将
 bind 升级.如果不是,你也可以用这旧的.你可直接执行 named 而不是 ndc
start. ndc reload 变成 named.reload 而 ndc restart 变成 named.restart.
所有这些程式可能都在 /usr/sbin 里.


如何建立次要名称伺服器?
如果主要名称伺服器的地址是 127.0.0.1,在你的次要名称伺服器的 named.
boot 档案中放一行:


------------------------------------------------------------------------
--------

  secondary     linux.bogus             127.0.0.1       sz/linux.bogus



------------------------------------------------------------------------
--------


我希望离线时 bind 仍继续执行.
我收到来自 Ian Clark < ic@deakin.edu.au> 的信件解释他如何办到这点.

I run named on my 'Masquerading' machine here. I have
two root.cache files, one called root.cache.real which contains
the real root server names and the other called root.cache.fake
which contains...

--------------
; root.cache.fake
; this file contains no information
--------------

When I go off line I copy the root.cache.fake file to root.cache and
restart named.

When I go online I copy root.cache.real to root.cache and restart
named.

This is done from ip-down & ip-up respectively.

The first time I do a query off line on a domain name named doesn't
have details for it puts an entry like this in messages..

Jan 28 20:10:11 hazchem named[10147]: No root nameserver for class IN

which I can live with.

It certainly seems to work for me. I can use the nameserver for
local machines while off the 'net without the timeout delay for
external domain names and I while on the 'net queries for external
domains work normally


名称伺服器将暂存资料保存在那儿? 有任何方法可以控制它的大小吗?
所有的暂存资料都保存在记忆体中,任何时刻它都不会被写入磁碟中.每次你杀掉
 named 时这些暂存资料就没有了.没有任何方法可以控制暂存资料. named 用一
些简单的法则来管理它.你不能用任何理由任何方法控制暂存资料或其大小.如果
你希望如此你可以自己去改 named 的程式.不过最好别这麽做.


如何在重新起始 named 之间保存暂存资料? 我可以把它存下来吗?
不! named 被杀掉时不会保留暂存资料.这就是说暂存资料必须在每次你杀掉并重
新起始 named 後重新建立. 没有办法让 named 将暂存资料存到档案里.如果你
希望如此你可以自己去改 named 的程式.不过最好别这麽做.



--

※ 来源:·BBS 水木清华站 smth.org·[FROM: 210.34.33.55]
--
※ 转载:·BBS 荔园晨风站 bbs.szu.edu.cn·[FROM: 192.168.1.113]


[回到开始] [上一篇][下一篇]

荔园在线首页 友情链接:深圳大学 深大招生 荔园晨风BBS S-Term软件 网络书店