Giter Club home page Giter Club logo

Comments (7)

PikuZheng avatar PikuZheng commented on September 28, 2024

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.

maojianyou avatar maojianyou commented on September 28, 2024

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 加载这个,然后里面的文件是
image

因为test.conf里面可能非常多的域名,使用guowai这个组,那么我想直接应用到下面这个组上,就可以针对test文件里面的所有不做cache,这种支持不
server 8.8.8.8 -group guowai -exclude-default-group -no-cache

from smartdns.

PikuZheng avatar PikuZheng commented on September 28, 2024

建议用domain-rule做

from smartdns.

pymumu avatar pymumu commented on September 28, 2024

为什么要不厌其烦搞那么复杂,分流很简单。

方法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.

maojianyou avatar maojianyou commented on September 28, 2024

为什么要不厌其烦搞那么复杂,分流很简单。

方法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.

pymumu avatar pymumu commented on September 28, 2024
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.

ixmu avatar ixmu commented on September 28, 2024
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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.