connection timed out; trying next origin ;; connection timed out; no servers could be reached
修改bind服务器named.conf配置即可,将
options {
listen-on port 53 { 127.0.0.1; };
listen-on-v6 port 53 { ::1; };
修改为
options {
listen-on port 53 { 192.168.1.8; }; ####本机ip
listen-on-v6 port 53 { ::1; };
再将dns地址参数修改成 192.168.1.8
[root@node01 slaves]# cat /etc/resolv.conf
nameserver 192.168.1.8
测试:
[root@node01 slaves]# nslookup
www.linuxprobe.com
Server: 192.168.1.8
Address: 192.168.1.8#53
Name: www.linuxprobe.com
Address: 192.168.1.8
192.168.1.8
Server: 192.168.1.8
Address: 192.168.1.8#53
8.1.168.192.in-addr.arpa name = www.linuxprobe.com.
8.1.168.192.in-addr.arpa name = mail.linuxprobe.com.
8.1.168.192.in-addr.arpa name = ns.linuxprobe.com.