DNS bind 问题
https://yourwebhoster.eu/knowled ... ur-DNS-cluster.html
我用的是UBUNTU系统, ISP服务已经提供了DNS服务器,他告诉我可以这样设置DNS解析,修改/etc/bind/named.conf.options
但是我怎么添加自己的DNS解析记录, 把网站的DNS解析到自己网站IP还是解析到ISP提供的DNS服务器上呢
/etc/bind/named.conf.optionsoptions {
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 {
46.249.37.254;
};
auth-nxdomain no; # conform to RFC1035
listen-on-v6 { any; };
allow-transfer {46.249.37.254;};
notify yes;
also-notify {46.249.37.254;};
allow-recursion { 127.0.0.1; };
复制代码