名稱 | 代表意義 |
com | 公司、行號、企業 |
org | 組織、機構 |
edu | 教育單位 |
gov | 政府單位 |
net | 網路、通訊 |
mil | 軍事單位 |
[domain] [ttl] IN [[RR type] [RR data]] [待查資料] [暫存時間(秒)] IN [[資源類型] [資源內容]]如果忘記,可以直接 dig linux.vbird.org 瞧一瞧喔!看看 A 的 RR 以及 RR data 各為何。
# vim /etc/named.conf options { listen-on port 53 { any; }; directory "/var/named"; dump-file "/var/named/data/cache_dump.db"; statistics-file "/var/named/data/named_stats.txt"; memstatistics-file "/var/named/data/named_mem_stats.txt"; allow-query { any; }; allow-recursion { 127.0.0.0/8; 192.168.0.0/16; 10.0.0.0/8; }; dnssec-enable yes; dnssec-validation yes; bindkeys-file "/etc/named.iscdlv.key"; managed-keys-directory "/var/named/dynamic"; pid-file "/run/named/named.pid"; session-keyfile "/run/named/session.key"; }; logging { channel default_debug { file "data/named.run"; severity dynamic; }; }; zone "." IN { type hint; file "named.ca"; };
zone "stationXX.dic.ksu" IN { type master; file "named.stationXX.dic.ksu"; };
$TTL 1D @ IN SOA server.stationXX.dic.ksu. student.mail.stationXX.dic.kus. ( 2016112601 1D 1H 1W 3H ) @ IN NS server.stationXX.dic.ksu. server.stationXX.dic.ksu. IN A 10.255.XX.254 client.stationXX.dic.ksu. IN A 10.255.XX.1 www.stationXX.dic.ksu. IN CNAME server.stationXX.dic.ksu. ftp.stationXX.dic.ksu. IN CNAME server.stationXX.dic.ksu. mail.stationXX.dic.ksu. IN A 10.255.XX.254 mail.stationXX.dic.ksu. IN MX 5 mail.stationXX.dic.ksu.
zone "XX.255.10.in-addr.arpa" { type master; file "named.10.255.XX"; };
$TTL 1D @ IN SOA server.station100.dic.ksu. student.mail.station100.dic.kus. ( 2016112801 1D 1H 1W 3H ) @ IN NS server.station100.dic.ksu. 254 IN PTR server.station100.dic.ksu. 1 IN PTR client.station100.dic.ksu.