bind9DNS服务器架设

1.安装 
sudo apt-get install bind9

2.配置本地域名转发
1)file : /etc/bind/named.conf.local
添加 include “/etc/bind/zones.my”;

2)file : /etc/bind/zones.my
添加
zone “local.com” {
type master;
file “/etc/bind/db.my”;
};

3)file : /etc/bind/db.my
添加 或复制 /etc/bind/db.local
;
; BIND reverse data file for broadcast zone
;
$TTL 604800
@ IN SOA localhost. root.localhost. (
          1 ; Serial
          604800 ; Refresh
          86400 ; Retry
          2419200 ; Expire
          604800 ) ; Negative Cache TTL
;
@     IN     NS     192.168.1.200.
@     IN     A     192.168.1.200
*     IN     A     192.168.1.200

4)file : /etc/bind/named.conf.options

添加

forwarders {
    114.114.114.114;
    202.96.199.133;
    202.96.199.132;
    202.99.96.68;
    8.8.8.8;
    8.8.4.4;
};

dnssec-enable no;
dnssec-validation no;

3. 重启
/etc/init.d/bind9 restart