Ubuntu 17.10-通过 TCP 进行的 DNS 查询不起作用

Ubuntu 17.10-通过 TCP 进行的 DNS 查询不起作用

我正在使用 DNSCrypt-proxy:

me@nb:~$ cat /etc/resolv.conf 
nameserver 127.0.2.1


me@nb:~$ nslookup ya.ru
Server:     127.0.2.1
Address:    127.0.2.1#53

Non-authoritative answer:
Name:   ya.ru
Address: 87.250.250.242

me@nb:~$ ping ya.ru
PING ya.ru (87.250.250.242) 56(84) bytes of data.
64 bytes from ya.ru (87.250.250.242): icmp_seq=1 ttl=50 time=31.3 ms
^C
--- ya.ru ping statistics ---
1 packets transmitted, 1 received, 0% packet loss, time 0ms
rtt min/avg/max/mdev = 31.320/31.320/31.320/0.000 ms

现在我设置TCPOnly 开启进入 /etc/dnscrypt-proxy/dnscrypt-proxy.conf

me@nb:~$ sudo service dnscrypt-proxy restart
me@nb:~$ nslookup ya.ru
Server:     127.0.2.1
Address:    127.0.2.1#53

Non-authoritative answer:
Name:   ya.ru
Address: 87.250.250.242

me@nb:~$ ping ya.ru
ping: ya.ru: Temporary failure in name resolution

相关内容