ubuntu 10.04 DNS的简单配置

1.安装BIND9

fang@bogon:~$ aptitude install bind9 bind9-host dnsutils.

2.配置IP vi /etc/network/interfaces(RHEL 在/etc/sysconfig/network-scripts/ifcfg-eth0)

ubuntu 10.04 DNS的简单配置_第1张图片 

3.配置DNS客户端vi /etc/resolv.conf

 

4.编辑named.conf.default-zones文件   fang@bogon:/etc/bind$ vi named.conf.default-zones

 

5.编辑test.zone

5.编辑1.168.192..zone

 

6.重启DNS sudo /etc/init.d/bind9 restart

7.测试

# netstat –tulpn|grep 53

nslookup

DNS日志文件:/var/log/syslog

 

你可能感兴趣的:(职场,ubuntu,ubuntu,休闲,10.04,DNS的简单配置)