neo@master:~$ # apt-get install bind9
named.conf.local.neo.org
neo@master:~$ cat /etc/bind/named.conf.local.neo.org zone "neo.org" in { type master; file "db.neo.org"; }; zone "0.16.172.in-addr.arpa" in { type master; file "db.172.16.0"; };
/var/cache/bind/db.neo.org
neo@master:~$ cat /var/cache/bind/db.neo.org @ IN SOA neo.org. root.neo.org. ( 200211131 ; serial, todays date + todays serial # 28800 ; refresh, seconds 7200 ; retry, seconds 3600000 ; expire, seconds 86400 ) ; minimum, seconds NS ns.neo.org. @ IN A 172.16.0.1 www IN A 172.16.0.1 mail IN A 172.16.0.1 @ MX 10 mail.neo.org.
/var/cache/bind/db.172.16.0
neo@master:~$ cat /var/cache/bind/db.172.16.0 @ IN SOA neo.org root.neo.org. ( 2002111300 ; Serial 28800 ; Refresh 14400 ; Retry 3600000 ; Expire 86400 ) ; Minimum IN NS ns.neo.org. 1 PTR www1.neo.org. 2 PTR www2.neo.org. 3 PTR www3.neo.org. neo@master:~$
/etc/resolv.conf
neo@master:~$ cat /etc/resolv.conf search neo.org nameserver 172.16.0.2 neo@master:~$
原文出处:Netkiller 系列 手札
本文作者:陈景峯
转载请与作者联系,同时请务必标明文章原始出处和作者信息及本声明。