1、
安装:
apt-get install bind9
2、
配置:
/etc/bindvim named.conf.local
添加
zone "xxx.com"
{ type master; file "/etc/bind/db.xxx.com"; };/etc/bind
新建db.xxx.com文件 cp db.local db.xxx.com
;; BIND data file for local loopback interface;$TTL 604800@ IN SOA localhost. root.localhost. ( 2 ; Serial 604800 ; Refresh 86400 ; Retry 2419200 ; Expire 604800 ) ; Negative Cache TTL;@ IN NS localhost.@ IN A 10.8.15.168@ IN AAAA ::1www IN A 10.8.15.168mail IN A 10.8.15.168
之后重启bind9
/etc/init.d/bind9 restart