一:安装环境 FreeBSD 5.4-RELEASE
二:安装所需软件 daemontools-0.76.tar.gz
cspi-tcp-0.88.tar.gz
djbdns-1.05.tar.gz
三:安装步骤
1. 安装 daemontools
mkdir /package
cd /package
wget
tar zxvf daemontools-0.76.tar.gz
cd admin/daemontools-0.76
package/install
2. 安装 ucspi-tcp-0.88
cd /package
wget
tar zxvf ucspi-tcp-0.88.tar.gz
cd ucspi-tcp-0.88
make && make setup check
3. 安装 djbdns
cd /package
wget
tar zxvf djbdns-1.05.tar.gz
make && make setup check
pw useradd Gdnscache
pw useradd Gdnslog
(也可以选择ports方式对以上软件进行安装
cd /usr/ports/sysutils/ucspi-tcp
make install
cd /usr/ports/sysutils/daemontools
make install
cd /usr/ports/net/djbdns
make install)
4. 停止系统本身的named服务,检查daemontools是否已经运行:
killall named
ps auxwww | grep svscan
5. 配置dnscache
cd /usr/loca/bin
dnscache-conf Gdnscache Gdnslog /etc/dnscache 127.0.0.1
6. 用daemontools启动djbdns
ln -s /etc/dnacache /service
ps aux | grep dns
7. 修改/etc/resolv.conf
添加:nameserver 127.0.0.1
8. 测试dns解析
nslookup
阅读(848) | 评论(0) | 转发(0) |