我刚刚在 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
我的名字.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 上?
答案1
您的区域中有一个拼写错误:
stats.yt. IN A 5.135.**160**.63
www IN CNAME stats.yt.
cakebox IN A 5.135.**130**.63
提示:使用 CNAME 来避免此类问题,就像您对 所做的那样www
。