找回密码
 立即注册

QQ登录

只需一步,快速开始

搜索
广告投放联系QQ68610888
查看: 5115|回复: 14

padavan怎么设置smartdns

[复制链接]
发表于 2020-2-1 20:51 | 显示全部楼层 |阅读模式
只找到openwrt的教程,和老毛子还是有很大区别的,有哪位大神给个教程,或者写个设置方法,小白在此感谢。
我的恩山、我的无线 The best wifi forum is right here.
发表于 2020-2-2 08:49 | 显示全部楼层
我也想知道

点评

用命令行,写好配置文件,需要实现什么样功能,只需将其前面的符号 # 去掉即可, 具体功能如下 -  详情 回复 发表于 2020-2-2 10:03
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2020-2-2 10:03 | 显示全部楼层

用命令行,写好配置文件,需要实现什么样功能,只需将其前面的符号 # 去掉即可,
具体功能如下
-
  1. # dns server name, defaut is host name
  2. # server-name,
  3. # example:
  4. #   server-name smartdns
  5. #

  6. # Include another configuration options
  7. # conf-file [file]
  8. # conf-file blacklist-ip.conf

  9. # dns server bind ip and port, default dns server port is 53, support binding multi ip and port
  10. # bind udp server
  11. #   bind [IP]:[port] [-group [group]] [-no-rule-addr] [-no-rule-nameserver] [-no-rule-ipset] [-no-speed-check] [-no-cache] [-no-rule-soa] [-no-dualstack-selection]
  12. # bind tcp server
  13. #   bind-tcp [IP]:[port] [-group [group]] [-no-rule-addr] [-no-rule-nameserver] [-no-rule-ipset] [-no-speed-check] [-no-cache] [-no-rule-soa] [-no-dualstack-selection]
  14. # option:
  15. #   -group: set domain request to use the appropriate server group.
  16. #   -no-rule-addr: skip address rule.
  17. #   -no-rule-nameserver: skip nameserver rule.
  18. #   -no-rule-ipset: skip ipset rule.
  19. #   -no-speed-check: do not check speed.
  20. #   -no-cache: skip cache.
  21. #   -no-rule-soa: Skip address SOA(#) rules.
  22. #   -no-dualstack-selection: Disable dualstack ip selection.
  23. # example:
  24. #  IPV4:
  25. #    bind :53
  26. #    bind :6053 -group office -no-speed-check
  27. #  IPV6:
  28. #    bind [::]:53
  29. #    bind-tcp [::]:53
  30. bind [::]:53

  31. # tcp connection idle timeout
  32. # tcp-idle-time [second]

  33. # dns cache size
  34. # cache-size [number]
  35. #   0: for no cache
  36. cache-size 512

  37. # prefetch domain
  38. # prefetch-domain [yes|no]
  39. # prefetch-domain yes

  40. # List of hosts that supply bogus NX domain results
  41. # bogus-nxdomain [ip/subnet]

  42. # List of IPs that will be filtered when nameserver is configured -blacklist-ip parameter
  43. # blacklist-ip [ip/subnet]

  44. # List of IPs that will be accepted when nameserver is configured -whitelist-ip parameter
  45. # whitelist-ip [ip/subnet]

  46. # List of IPs that will be ignored
  47. # ignore-ip [ip/subnet]

  48. # speed check mode
  49. # speed-check-mode [ping|tcp:port|none|,]
  50. # example:
  51. #   speed-check-mode ping,tcp:80
  52. #   speed-check-mode tcp:443,ping
  53. #   speed-check-mode none

  54. # force AAAA query return SOA
  55. # force-AAAA-SOA [yes|no]

  56. # Enable IPV4, IPV6 dual stack IP optimization selection strategy
  57. # dualstack-ip-selection-threshold [num] (0~1000)
  58. # dualstack-ip-selection [yes|no]
  59. # dualstack-ip-selection yes

  60. # edns client subnet
  61. # edns-client-subnet [ip/subnet]
  62. # edns-client-subnet 192.168.1.1/24
  63. # edns-client-subnet [8::8]/56

  64. # ttl for all resource record
  65. # rr-ttl: ttl for all record
  66. # rr-ttl-min: minimum ttl for resource record
  67. # rr-ttl-max: maximum ttl for resource record
  68. # example:
  69. # rr-ttl 300
  70. # rr-ttl-min 60
  71. # rr-ttl-max 86400

  72. # set log level
  73. # log-level: [level], level=fatal, error, warn, notice, info, debug
  74. # log-file: file path of log file.
  75. # log-size: size of each log file, support k,m,g
  76. # log-num: number of logs
  77. log-level info
  78. # log-file /var/log/smartdns.log
  79. # log-size 128k
  80. # log-num 2

  81. # dns audit
  82. # audit-enable [yes|no]: enable or disable audit.
  83. # audit-enable yes
  84. # audit-SOA [yes|no]: enable or disalbe log soa result.
  85. # audit-size size of each audit file, support k,m,g
  86. # audit-file /var/log/smartdns-audit.log
  87. # audit-size 128k
  88. # audit-num 2

  89. # remote udp dns server list
  90. # server [IP]:[PORT] [-blacklist-ip] [-whitelist-ip] [-check-edns] [-group [group] ...] [-exclude-default-group]
  91. # default port is 53
  92. #   -blacklist-ip: filter result with blacklist ip
  93. #   -whitelist-ip: filter result whth whitelist ip,  result in whitelist-ip will be accepted.
  94. #   -check-edns: result must exist edns RR, or discard result.
  95. #   -group [group]: set server to group, use with nameserver /domain/group.
  96. #   -exclude-default-group: exclude this server from default group.
  97. # server 8.8.8.8 -blacklist-ip -check-edns -group g1 -group g2

  98. # remote tcp dns server list
  99. # server-tcp [IP]:[PORT] [-blacklist-ip] [-whitelist-ip] [-group [group] ...] [-exclude-default-group]
  100. # default port is 53
  101. # server-tcp 8.8.8.8

  102. # remote tls dns server list
  103. # server-tls [IP]:[PORT] [-blacklist-ip] [-whitelist-ip] [-spki-pin [sha256-pin]] [-group [group] ...] [-exclude-default-group]
  104. #   -spki-pin: TLS spki pin to verify.
  105. #   -tls-host-check: cert hostname to verify.
  106. #   -hostname: TLS sni hostname.
  107. # Get SPKI with this command:
  108. #    echo | openssl s_client -connect '[ip]:853' | openssl x509 -pubkey -noout | openssl pkey -pubin -outform der | openssl dgst -sha256 -binary | openssl enc -base64
  109. # default port is 853
  110. # server-tls 8.8.8.8
  111. # server-tls 1.0.0.1

  112. # remote https dns server list
  113. # server-https https://[host]:[port]/path [-blacklist-ip] [-whitelist-ip] [-spki-pin [sha256-pin]] [-group [group] ...] [-exclude-default-group]
  114. #   -spki-pin: TLS spki pin to verify.
  115. #   -tls-host-check: cert hostname to verify.
  116. #   -hostname: TLS sni hostname.
  117. #   -http-host: http host.
  118. # default port is 443
  119. # server-https https://cloudflare-dns.com/dns-query

  120. # specific nameserver to domain
  121. # nameserver /domain/[group|-]
  122. # nameserver /www.example.com/office, Set the domain name to use the appropriate server group.
  123. # nameserver /www.example.com/-, ignore this domain

  124. # specific address to domain
  125. # address /domain/[ip|-|-4|-6|#|#4|#6]
  126. # address /www.example.com/1.2.3.4, return ip 1.2.3.4 to client
  127. # address /www.example.com/-, ignore address, query from upstream, suffix 4, for ipv4, 6 for ipv6, none for all
  128. # address /www.example.com/#, return SOA to client, suffix 4, for ipv4, 6 for ipv6, none for all

  129. # enable ipset timeout by ttl feature
  130. # ipset-timeout [yes]

  131. # specific ipset to domain
  132. # ipset /domain/[ipset|-]
  133. # ipset /www.example.com/block, set ipset with ipset name of block
  134. # ipset /www.example.com/-, ignore this domain
复制代码

点评

能给几个ip吗,是不是设置了国外ip就能兲朝上网?  详情 回复 发表于 2020-2-4 09:01
感谢,没学过代码,勉强能看懂  详情 回复 发表于 2020-2-3 13:36
大佬代码对于我等小白都不知道该在哪里运行,有直观的web设置吗?  详情 回复 发表于 2020-2-2 12:39

评分

参与人数 1恩山币 -1 收起 理由
tor*** -1 我手抖了下,加分变扣分了!

查看全部评分

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

使用道具 举报

 楼主| 发表于 2020-2-2 12:39 | 显示全部楼层
hello_limin 发表于 2020-2-2 10:03
用命令行,写好配置文件,需要实现什么样功能,只需将其前面的符号 # 去掉即可,
具体功能如下
-

大佬代码对于我等小白都不知道该在哪里运行,有直观的web设置吗?
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2020-2-2 16:27 | 显示全部楼层
同求,有没有大神设置好的固件共享一下
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2020-2-2 22:36 | 显示全部楼层
同求,有没有大神设置好的固件共享一下
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2020-2-3 10:17 | 显示全部楼层
我也在找这个东西,最好是hanwckf大神的纯净5.0固件增加smartdns功能,那命令行看不懂啊
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2020-2-3 10:38 | 显示全部楼层
三楼是高手啊,已经给出配置文件了,去掉#号就可以使用对应的功能了

点评

是在smartdns的哪个位置设置呢?能给出图片示意一下位置吗  详情 回复 发表于 2020-2-3 12:24
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

 楼主| 发表于 2020-2-3 12:24 | 显示全部楼层
axzy 发表于 2020-2-3 10:38
三楼是高手啊,已经给出配置文件了,去掉#号就可以使用对应的功能了

是在smartdns的哪个位置设置呢?能给出图片示意一下位置吗
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2020-2-3 13:36 | 显示全部楼层
hello_limin 发表于 2020-2-2 10:03
用命令行,写好配置文件,需要实现什么样功能,只需将其前面的符号 # 去掉即可,
具体功能如下
-

感谢,没学过代码,勉强能看懂
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2020-2-4 07:50 来自手机 | 显示全部楼层
github源代码介绍里面有使用方法详解。
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2020-2-4 08:44 | 显示全部楼层
最新版固件20200113人家都设置好了,打开开关就是

点评

我用的版本,找不到配置文件位置啊,你知道路径吗  详情 回复 发表于 2020-2-6 19:14
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2020-2-4 09:01 | 显示全部楼层
hello_limin 发表于 2020-2-2 10:03
用命令行,写好配置文件,需要实现什么样功能,只需将其前面的符号 # 去掉即可,
具体功能如下
-

能给几个ip吗,是不是设置了国外ip就能兲朝上网?
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2020-2-6 19:14 | 显示全部楼层
eman_kd 发表于 2020-2-4 08:44
最新版固件20200113人家都设置好了,打开开关就是

我用的版本,找不到配置文件位置啊,你知道路径吗

点评

我的是在这里  详情 回复 发表于 2020-2-6 21:04
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2020-2-6 21:04 | 显示全部楼层
anluo8 发表于 2020-2-6 19:14
我用的版本,找不到配置文件位置啊,你知道路径吗

我的是在这里

本帖子中包含更多资源

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

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

使用道具 举报

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

本版积分规则

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

GMT+8, 2024-4-26 17:05

Powered by Discuz! X3.5

© 2001-2024 Discuz! Team.

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

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