DNS Server (Bind-8.x.x) |
目標:
/etc/named.conf
options { directory "/var/named"; forward only; forwarders { xxx.xxx.xxx.xxx ; # ISP の DNS }; notify no; allow-query { 192.168.1.0/24; 127.0.0.1; }; }; zone "." { type hint; file "named.ca"; }; #zone "localhost" { # type master; # file "named.local"; #}; zone "0.0.127.in-addr.arpa" { type master; file "rev/0.0.127.in-addr.arpa"; }; zone "hiyoko.net." { type master; file "zone/named.hiyoko"; }; zone "1.168.192.in-addr.arpa" { type master; file "rev/1.168.192.in-addr.arpa"; }; zone fileszone/named.hiyoko ; named.hiyoko @ IN SOA hiyoko.net. root.lib.hiyoko.net. ( 200103202337 ; Serial 8H ; Refresh 2H ; Retry 4W ; Expire 1D) ; Minimum TTL ; IN A 192.168.1.1 hiyoko.net. IN NS lib.hiyoko.net. hiyoko.net. IN MX 10 lib.hiyoko.net. localhost IN A 127.0.0.1 lib IN A 192.168.1.1 hoge IN A 192.168.1.10 hogege IN A 192.168.1.11 hogegege IN A 192.168.1.12 ; ftp IN CNAME lib www IN CNAME lib rev/1.168.192.in-addr.arpa ; 1.168.192.in-addr.arpa @ IN SOA lib.hiyoko.net. root.hiyoko.net. ( 200103202339 ; Serial 8H ; Refresh 2H ; Retry 4W ; Expire 1D) ; Minimum TTL IN NS lib.hiyoko.net. 1 IN PTR lib.hiyoko.net. 10 IN PTR hoge.hiyoko.net. 11 IN PTR hogege.hiyoko.net. 12 IN PTR hogegege.hiyoko.net. |
|