Domain-Name-System
Debian 上的 Bind9:本地主機上的 nslookup 點不是我的 ip 伺服器
我剛剛在 Debian 上安裝了 bind9。
我認為我沒有配置所有內容,因為我仍然有 DNS 和傳播問題。我認為問題出在
nslookup
:Server: 127.0.0.1 Address: 127.0.0.1#53
命令 :
root@ks3309528:~# nslookup stats.yt Server: 127.0.0.1 Address: 127.0.0.1#53 Name: stats.yt Address: 5.135.160.63 root@ks3309528:~# nslookup cakebox.stats.yt Server: 127.0.0.1 Address: 127.0.0.1#53 Name: cakebox.stats.yt Address: 5.135.130.63
也許這是我的
/etc/resolv.conf
nameserver 127.0.0.1 nameserver 213.186.33.99 search ovh.net
我的 name.conf.options :
options { directory "/var/cache/bind"; // If there is a firewall between you and nameservers you want // to talk to, you may need to fix the firewall to allow multiple // ports to talk. See http://www.kb.cert.org/vuls/id/800113 // If your ISP provided one or more IP addresses for stable // nameservers, you probably want to use them as forwarders. // Uncomment the following block, and insert the addresses replacing // the all-0's placeholder. // forwarders { // 0.0.0.0; // }; //======================================================================== // If BIND logs error messages about the root key being expired, // you will need to update your keys. See https://www.isc.org/bind-keys //======================================================================== dnssec-validation auto; auth-nxdomain no; # conform to RFC1035 listen-on-v6 { ::1; }; listen-on port 53 { any; }; allow-recursion { 127.0.0.1;}; };
我的
db.statsyt
$TTL 86400 @ IN SOA ks3309528.kimsufi.com. root.stats.yt. ( 2014012514 ;serial 3600 ;refresh 600 ;retry 2419200 ;expire 600) ;minimum @ IN NS ks3309528.kimsufi.com. @ IN NS ns.kimsufi.com. stats.yt. IN A 5.135.160.63 www IN CNAME stats.yt. cakebox IN A 5.135.130.63
和
db.statsyt.inv
$TTL 86400 @ IN SOA ks3309528.kimsufi.com. root.stats.yt. ( 2014012501 3600 600 2419200 600) @ NS ks3309528.kimsufi.com. 63 IN PTR stats.yt.
所以問題是我認為的伺服器的IP和地址。
如果我這樣做https://www.whatsmydns.net/#A/cakebox.stats.yt
沒關係,但為什麼我無法訪問cakebox.stats.yt?
還是問題出在 apache 上?
您的區域中有錯字:
stats.yt. IN A 5.135.**160**.63 www IN CNAME stats.yt. cakebox IN A 5.135.**130**.63
提示:使用 CNAME 來避免此類問題,就像您使用
www
.