Comments (7)
server 8.8.8.8 -group guowai -exclude-default-group -no-cache
这个 guowai 是用什么定义的,bind定义可以在bind同时做 -no-cache,domain-rule或nameserver定义可以用domain-rule做-no-cache
from smartdns.
server 8.8.8.8 -group guowai -exclude-default-group -no-cache
这个 guowai 是用什么定义的,bind定义可以在bind同时做 -no-cache,domain-rule或nameserver定义可以用domain-rule做-no-cache
conf-file /etc/smartdns/test.conf 加载这个,然后里面的文件是
因为test.conf里面可能非常多的域名,使用guowai这个组,那么我想直接应用到下面这个组上,就可以针对test文件里面的所有不做cache,这种支持不
server 8.8.8.8 -group guowai -exclude-default-group -no-cache
from smartdns.
建议用domain-rule做
from smartdns.
为什么要不厌其烦搞那么复杂,分流很简单。
方法1:
group-begin guowai
server x.x.x.x
domain-set -name guowai-domain -file path-to-guowai.list
group-match -domain domain-set:guowai-domain
address #6
speed-check-mode none
group-end
方法二:
server x.x.x.x -g guowai -e
domain-set -name guowai-domain -file path-to-guowai.list
domain-rules domain-set:guowai-domain -nameserver guowai -address #6 -c none
from smartdns.
为什么要不厌其烦搞那么复杂,分流很简单。
方法1:
group-begin guowai server x.x.x.x domain-set -name guowai-domain -file path-to-guowai.list group-match -domain domain-set:guowai-domain address #6 speed-check-mode none group-end
方法二:
server x.x.x.x -g guowai -e domain-set -name guowai-domain -file path-to-guowai.list domain-rules domain-set:guowai-domain -nameserver guowai -address #6 -c none
我大概意思,国外分组guowai的缺省域名不进行缓存,但国内的域名可以进行缓存,所以想通过分组名称是否进行缓存
from smartdns.
group-begin guowai
server x.x.x.x
domain-set -name guowai-domain -file path-to-guowai.list
group-match -domain domain-set:guowai-domain
address #6
speed-check-mode none
# 增加关闭所有域名缓存规则。
domain-rules /./ -no-cache
group-end
from smartdns.
group-begin guowai server x.x.x.x domain-set -name guowai-domain -file path-to-guowai.list group-match -domain domain-set:guowai-domain address #6 speed-check-mode none # 增加关闭所有域名缓存规则。 domain-rules /./ -no-cache group-end
我用的方法二,请问两种方式有什么区别或者问题
from smartdns.
Related Issues (20)
- domain-rules -no-serve-expired 选项依赖 “speed-check-mode none”
- 双栈优选能否强制指定IPv6 HOT 7
- 什麼狀況緩存紀錄會被踢掉?:serve-expired-ttl 0 HOT 6
- 莫名其妙的丢一些 DNS 解析 HOT 23
- immortalwrt23.05.1安装smartdns失败 HOT 5
- 同步最新的代码后编译失败了 HOT 3
- HTTP 400 Bad Request for DOH ordns.he.net HOT 2
- commit: 5d76934d8359e6894ad9a5f4465cbf216a5dbc02 编译报错!
- Mullvad DNS HOT 1
- Total speed check failure shouldn't be cached HOT 1
- ipset-timeout问题 HOT 3
- 开启缓存后,如果某个域名被污染了,即使修改了该域名的 domain-rules 规则,也无法快速更新缓存文件中的被污染域名结果 HOT 1
- domain-rules的group参数问题 HOT 5
- speed-check-mode使用问题 HOT 34
- CNAME doesn't follow domain-rules HOT 4
- nft 添加 ipset 错误 HOT 5
- 网赌被黑了不给提款怎么办?解决微:lyh20085150 HOT 2
- 软路由运行4天后 Smartdns卡死崩溃 HOT 5
- 配置文件支持相对路径 HOT 3
- 设置成非53端口不能生效 HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from smartdns.