Ubuntu 10.04 安装DNS后,应如何配置设定档?
使到关机后,网址对应IP资讯也能保存于电脑中。
又请问一下,bind9服务器的高速缓存储存在哪里,我想复制它到另一电脑中。
请高手指点一下!
Ubuntu版本:
$ uname -rm
2.6.32-26-generic x86_64
安装如下:
$ sudo apt-get install bind9 bind9utils
无编辑设定档,全部使用默认设定档
启动DNS服务:
$ sudo chkconfig bind9 on
$ sudo chkconfig --list bind9
bind9 0:off 1:off 2:on 3:on 4:on 5:on 6:off
$ sudo service bind9 start
测试如下:比较一下关机前后第一次的Query time数据。
$ dig @0.0.0.0 ubuntu.org.cn ==> 关机前第一次
.....省略
;; Query time: 945 msec ==> 从root的DNS主机读取
;; SERVER: 127.0.0.1#53(0.0.0.0)
;; WHEN: Fri Dec 10 19:03:43 2010
;; MSG SIZE rcvd: 144
$ dig @0.0.0.0 ubuntu.org.cn ==> 关机前第二次
.....省略
;; Query time: 0 msec ==> 从本机高速缓存读取
;; SERVER: 127.0.0.1#53(0.0.0.0)
;; WHEN: Fri Dec 10 19:03:47 2010
;; MSG SIZE rcvd: 192
$ dig @0.0.0.0 ubuntu.org.cn ==> 关机后第一次
.....省略
;; Query time: 603 msec ==> 从root的DNS主机读取
;; SERVER: 127.0.0.1#53(0.0.0.0)
;; WHEN: Fri Dec 10 19:06:23 2010
;; MSG SIZE rcvd: 192
$ dig @0.0.0.0 ubuntu.org.cn ==> 关机后第二次
.....省略
;; Query time: 0 msec ==> 从本机高速缓存读取
;; SERVER: 127.0.0.1#53(0.0.0.0)
;; WHEN: Fri Dec 10 19:06:25 2010
;; MSG SIZE rcvd: 192
$
求助,Ubuntu 10.04安装DNS服务器中,如何保存网址对应IP资讯的记录?
-
- 帖子: 2
- 注册时间: 2010-11-20 10:49