找回密码
 立即注册

QQ登录

只需一步,快速开始

搜索
广告投放联系QQ68610888
查看: 5929|回复: 10

【视频分享第三波】去除dns污染 看完dnscrypt,再来看看dns_over_https

[复制链接]
本帖最后由 QQ66 于 2018-11-5 09:46 编辑

https_dns_proxy

github
安装
https_dns_proxy的openwrt-package的commit记录,Chaos_Calmer-15.05.1以前官方没有这个包,lede-17.01和后续的openwrt-18.06稳定版以及snapshot开发版可以直接用以下命令安装。
  1. opkg update
  2. opkg install https_dns_proxy
复制代码

Snapshot版支持了luci配置(18.06.1和之前的版本还没有),可以在openwrt后台搜索安装luci-app-https_dns_proxy并在luci界面配置。



修改配置文件
  1. vi /etc/config/https_dns_proxy
复制代码
把url_prefix改为cloudflare,默认的Google dns 对中国大陆不友好。


配置如下
  1. config https_dns_proxy
  2.         option listen_addr '0.0.0.0'
  3.         option listen_port '5353'
  4.         option user 'nobody'
  5.         option group 'nogroup'
  6.         option subnet_addr ''
  7.         option proxy_server ''
  8.         option url_prefix 'https://cloudflare-dns.com/dns-query?ct=application/dns-json&'
复制代码

重启软件
  1. /etc/init.d/https_dns_proxy restart
复制代码

查看进程
修改生效
  1. root@OpenWrt:~# ps | grep https_dns_proxy

  2. 8697 root     15928 S    /usr/sbin/https_dns_proxy -a 0.0.0.0 -p 5353 -u nobody -g nogroup -r https://cloudflare-dns.com/dns-query?ct=application/dns-json&
复制代码

测试
成功,查询时间大概40ms
  1. root@OpenWrt:~# dig @192.168.1.1 -p 5353 bing.com

  2. ; <<>> DiG 9.11.2-P1 <<>> @192.168.1.1 -p 5353 bing.com
  3. ; (1 server found)
  4. ;; global options: +cmd
  5. ;; Got answer:
  6. ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 44320
  7. ;; flags: qr rd ra; QUERY: 1, ANSWER: 2, AUTHORITY: 0, ADDITIONAL: 0

  8. ;; QUESTION SECTION:
  9. ;bing.com.                        IN        A

  10. ;; ANSWER SECTION:
  11. bing.com.                2091        IN        A        204.79.197.200
  12. bing.com.                2091        IN        A        13.107.21.200

  13. ;; Query time: 39 msec
  14. ;; SERVER: 192.168.1.1#5353(192.168.1.1)
  15. ;; WHEN: Sat Jul 07 06:26:15 GMT 2018
  16. ;; MSG SIZE  rcvd: 58
复制代码



视频链接:
YouTube短链接

本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有账号?立即注册

×
我的恩山、我的无线 The best wifi forum is right here.
这个牛B,我移动带宽正好用

点评

移动宽带的dns确实部分地区挺迷的  详情 回复 发表于 2018-10-28 19:30
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报



本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有账号?立即注册

×
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

不错,谢谢分享啦
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

 楼主| | 显示全部楼层
nb7110 发表于 2018-10-28 17:53
这个牛B,我移动带宽正好用

移动宽带的dns确实部分地区挺迷的
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

谢谢分享啦
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

谢谢发布分享
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

设置了之后无法上网了。所有域名都解析不到ip
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

别装,一开始这个aaround10还是很有上进心的,除了比较傻不能使用最新版本的upstream,然而我一个patch就解决了问题.最近在luci里面作死,强行绑定dnsmasq,感觉像一个理想主义者,喜欢强制别人和他的环境如同,强制在dnsmasq的cfg节点加入不知所云的*backup*,真的是傻透了
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

不错,挺好看的!
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

点赞啊!希望up主多出一些
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

关闭

欢迎大家光临恩山无线论坛上一条 /1 下一条

有疑问请添加管理员QQ86788181|手机版|小黑屋|Archiver|恩山无线论坛(常州市恩山计算机开发有限公司版权所有) ( 苏ICP备05084872号 )

GMT+8, 2024-4-28 19:17

Powered by Discuz! X3.5

© 2001-2024 Discuz! Team.

| 江苏省互联网有害信息举报中心 举报信箱:js12377 | @jischina.com.cn 举报电话:025-88802724 本站不良内容举报信箱:68610888@qq.com 举报电话:0519-86695797

快速回复 返回顶部 返回列表