假設我
申請的domain : air.net
固定ip為 : 220.135.54.25
OS ebian
DNS software: Bind9
已經在godaddy那邊設定
air.net <--> 220.135.54.25
以下是我的設定檔,麻煩前輩可以幫忙看一下,為什麼一直無法正確運作好嗎..感激不盡 Q_Q
目前狀況
#nmap localhost
53/tcp open domain
可是在/var/log/message 中卻沒有看到任何跟named有關的紀錄
Feb 13 19:48:25 localhost -- MARK -- <-- 最後五筆是這個
/etc/bind/named.conf
--新增的部分--
zone "air.net" {
type master;
file "/etc/bind/air.net";
allow-update { none; };
};
zone "54.135.220.in-addr.arpa" {
type master;
file "/etc/bind/air.rev";
allow-update { none; };
};
--end--
/etc/bind/named.conf.option
options {
directory "/var/cache/bind";
forwarders {
168.95.1.1;
168.192.192.1;
};
allow-query{
localhost;
};
auth-nxdomain yes; # conform to RFC1035
};
/etc/bind/air.net
$TTL 86400
@ IN SOA air.net. root.air.net. (
200502111818 ; Serial
604800 ; Refresh
86400 ; Retry
2419200 ; Expire
86400 ) ; Negative Cache TTL
;
@ IN NS air.net.
ns IN A 220.135.54.25
test IN A 220.135.54.25
/etc/bind/air.rev
@ IN SOA air.net. root.air.net. (
200502120110 ; Serial
604800 ; Refresh
86400 ; Retry
2419200 ; Expire
604800 ) ; Negative Cache TTL
;
@ IN NS air.net.
25 IN PTR air.net.