sudo apt-get install bind9 -y
sudo vim /etc/bind/named.conf.local
zone "aaa.tw" {
type master;
file "/etc/bind/aaa.tw.hosts";
};
zone "X.168.192.in-addr.arpa" {
type master;
file "/etc/bind/192.168.X.rev";
};
sudo vi /etc/bind/aaa.tw.hosts
$ttl 38400
@ IN SOA ns.aaa.tw. webmaster.aaa.tw. (
1255760316
10800
3600
604800
38400 )
@ IN NS ns.aaa.tw.
IN A 192.168.X.X
ns IN A 192.168.X.X
www IN CNAME ns.aaa.tw.
sudo vi /etc/bind/192.168.X.rev
$ttl 38400
@ IN SOA ns.aaa.tw. webmaster.aaa.tw. (
1255760379
10800
3600
604800
38400 )
@ IN NS ns.aaa.tw.
58 IN PTR ns.aaa.tw.
sudo /etc/init.d/bind9 restat
sudo dig aaa.tw
沒有留言:
張貼留言