Coder Social home page Coder Social logo

Comments (13)

hezhijie0327 avatar hezhijie0327 commented on August 16, 2024

意思是添加新域名,让其走 doh.pubdns.alidns.com 是吗?

from gfwlist2agh.

Potterli20 avatar Potterli20 commented on August 16, 2024

意思是添加新域名,让其走 doh.pubdns.alidns.com 是吗?

是的,就是把doh.pub和的dns.alidns.com去走,只留的dns.google,黑名单分流

from gfwlist2agh.

hezhijie0327 avatar hezhijie0327 commented on August 16, 2024
  1. 国内域名添加入:data_cnacc.txt -> 走 doh.pub dns.alidns.com
  2. 国外域名添加入:data_gfwlist.txt -> 走 doh.opendns.com dns.google
  3. 语法见文件内描述

from gfwlist2agh.

Potterli20 avatar Potterli20 commented on August 16, 2024

意思是添加新域名,让其走 doh.pubdns.alidns.com 是吗?

我在我的服务器把黑名单分流和白名单分流合并了,然后出现一写问题

from gfwlist2agh.

hezhijie0327 avatar hezhijie0327 commented on August 16, 2024

我在我的服务器把黑名单分流和白名单分流合并了,然后出现一写问题

如果是 AGH 的话,默认构建时就存在黑白名单合并的列表:非 split.txt 结尾文件,如 blacklist_full.txt

from gfwlist2agh.

Potterli20 avatar Potterli20 commented on August 16, 2024

我在我的服务器把黑名单分流和白名单分流合并了,然后出现一写问题

如果是 AGH 的话,默认构建时就存在黑白名单合并的列表:非 split.txt 结尾文件,如 blacklist_full.txt

http://dns.trli.club/dns/dns-txt/gfwlist2adguardhome/domain_full.txt ,这个就是我合并分流文件

from gfwlist2agh.

hezhijie0327 avatar hezhijie0327 commented on August 16, 2024
  1. 如果只是需要修改上游的话,只需修改 release.shdomestic_dnsforeign_dns 键值
  2. 上游过多会导致规则文件变大,构建时间变长
  3. AGH 中 # 为保留键值,即意为使用默认上游服务器

from gfwlist2agh.

hezhijie0327 avatar hezhijie0327 commented on August 16, 2024

我根据你配置文件中的配置,生成了此文件 blacklist_full.txt

from gfwlist2agh.

Potterli20 avatar Potterli20 commented on August 16, 2024

图片
我就是这样合并的

from gfwlist2agh.

hezhijie0327 avatar hezhijie0327 commented on August 16, 2024
  1. 不需要合并规则,非split文件已经合并好了,split是为了特定人群需求才出的单独列表
  2. split 文件(以黑名单为例)结构为:默认上游 DNS 服务器(国内DNS) + 黑名单规则(国外DNS)
  3. split 文件(以黑名单为例)结构为:默认上游 DNS 服务器(国内) + 白名单规则(#)+ 黑名单规则(国外DNS)
  4. # 意为使用默认上游 DNS 服务器

from gfwlist2agh.

Potterli20 avatar Potterli20 commented on August 16, 2024
1. 不需要合并规则,非`split`文件已经合并好了,`split`是为了特定人群需求才出的单独列表

2. `split` 文件([以黑名单为例](https://source.zhijie.online/GFWList2AGH/main/gfwlist2adguardhome/blacklist_full_split.txt))结构为:默认上游 DNS 服务器(国内DNS) +  黑名单规则(国外DNS)

3. 非 `split` 文件([以黑名单为例](https://source.zhijie.online/GFWList2AGH/main/gfwlist2adguardhome/blacklist_full.txt))结构为:默认上游 DNS 服务器(国内) + 白名单规则(#)+ 黑名单规则(国外DNS)

4. `#` 意为使用默认上游 DNS 服务器

那有什么办法不使用默认上游 DNS 服务器,就是只有 黑名单规则(国外DNS)+ 白名单规则(国内dns)

from gfwlist2agh.

hezhijie0327 avatar hezhijie0327 commented on August 16, 2024

理论上屏蔽掉 GenerateDefaultUpstream 即可

from gfwlist2agh.

Potterli20 avatar Potterli20 commented on August 16, 2024

到时候看看,你的test的脚本

from gfwlist2agh.

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.