1
我有兩個PC無法ping到主機名IP基礎
1. 192.168.56.102 => winXP
2. 192.168.56.103 => ubuntu 10.04 (bind9 and apache2 installed)
我已經註冊simas.tes到192.168.56.103
我做了什麼:
# vi /etc/bind/named.conf.local
zone "simas.tes" {
type master;
file "/etc/bind/zones/simas.tes.db";
};
zone "56.168.192.in-addr-arpa" {
type master;
file "/etc/bind/zones/rev.56.168.192.in-addr.arpa";
};
則:
# vi /etc/bind/zones/simas.tes.db
simas.tes. IN SOA ns1.simas.tes. admin.simas.tes. (
2006081401
28800
3600
604800
38400
)
simas.tes. IN NS NS1.simas.tes.
simas.tes. IN MX 10 mta.simas.tes.
www IN A 192.168.56.103
mta IN A 192.168.56.103
ns1 IN A 192.168.56.103
then:
# vi /etc/bind/zones/rev.56.168.192.in-addr.arpa
@ IN SOA ns1.simas.tes. admin.simas.tes. (
2006081401;
28800;
604600;
604800;
86400
)
IN NS ns1.simas.tes.
103 IN PTR simas.tes.
我挖狀態:
[email protected]:/var/www# dig simas.tes
; <<>> DiG 9.7.0-P1 <<>> simas.tes
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 9559
;; flags: qr aa rd ra; QUERY: 1, ANSWER: 0, AUTHORITY: 1, ADDITIONAL: 0
;; QUESTION SECTION:
;simas.tes. IN A
;; AUTHORITY SECTION:
simas.tes. 38400 IN SOA ns1.simas.tes. admin.simas.tes. 2006081401 28800 3600 604800 38400
;; Query time: 0 msec
;; SERVER: 192.168.56.103#53(192.168.56.103)
;; WHEN: Thu May 3 17:25:05 2012
;; MSG SIZE rcvd: 73
我NSLOOKUP狀態:
[email protected]:/var/www# nslookup simas.tes
Server: 192.168.56.103
Address: 192.168.56.103#53
*** Can't find simas.tes: No answer
現在我可以從192.168.56.102(我的winXP)訪問simas.tes網站,但我不能平到simas.tes(而不是192.168.56.103).. 我想念什麼? ..我只想知道如何成功地ping通simas.tes。
區域「0.168.192.in-addr.arpa」在您的反向DNS中可能最好是區域「56.168.192.in-addr.arpa」... – Mr47
我得到這個代碼的問題,我把這個儲備DNS前 – kreamik