当前位置: 首页 > 工具软件 > DNSCrypt > 使用案例 >

linux dns 53端口,[已解决]dnscrypt-proxy无法在53端口正常工作

柳修为
2023-12-01

我的dnscrypt-proxy配置如下

https://pastebin.com/AFxjxZeE

上面配置binding 53000端口,工作正常,如

⋊> ~ dig wiki.archlinux.org @127.0.0.1 -p 53000 16:46:13

; <<>> DiG 9.16.3 <<>> wiki.archlinux.org @127.0.0.1 -p 53000

;; global options: +cmd

;; Got answer:

;; ->>HEADER<

;; flags: qr rd ra; QUERY: 1, ANSWER: 2, AUTHORITY: 0, ADDITIONAL: 1

;; OPT PSEUDOSECTION:

; EDNS: version: 0, flags:; udp: 1452

;; QUESTION SECTION:

;wiki.archlinux.org.INA

;; ANSWER SECTION:

wiki.archlinux.org.73534INCNAMEapollo.archlinux.org.

apollo.archlinux.org.73534INA138.201.81.199

;; Query time: 0 msec

;; SERVER: 127.0.0.1#53000(127.0.0.1)

;; WHEN: 四 6月 04 16:50:32 CST 2020

;; MSG SIZE rcvd: 84

但是假如将端口binding到53,就无法正常工作,

⋊> ~ sudo netstat -anup | grep dns 16:53:00

udp 0 0 127.0.0.1:53 0.0.0.0:* 13984/dnscrypt-prox

udp6 0 0 ::1:53 :::* 13984/dnscrypt-prox

⋊> ~ dig wiki.archlinux.org @127.0.0.1 16:52:35

; <<>> DiG 9.16.3 <<>> wiki.archlinux.org @127.0.0.1

;; global options: +cmd

;; connection timed out; no servers could be reached

最近编辑记录 Thanos (2020-06-05 12:24:36)

 类似资料: