GithubHelp home page GithubHelp logo

weiping / smartdns-with-geosite Goto Github PK

View Code? Open in Web Editor NEW

This project forked from pymumu/smartdns

1.0 0.0 0.0 4.87 MB

forked from SmartDNS, adds support for geosite domain name matching rule.

Home Page: https://pymumu.github.io/smartdns/

License: GNU General Public License v3.0

Shell 5.15% JavaScript 3.59% C++ 16.38% C 63.71% Lua 2.63% Makefile 7.59% HTML 0.04% Batchfile 0.08% Dockerfile 0.09% VBScript 0.01% M4 0.23% CMake 0.06% Go 0.44%

smartdns-with-geosite's Introduction

English

在SmartDNS基础上,domain-set增加geosite域名匹配规则文本文件的支持,以便实现域名服务器分组。

域名规则支持以下几种匹配方式:

  1. 以 domain: 开头,域匹配。e.g: domain:google.com 会匹配自身 google.com,以及其子域名 www.google.com, maps.l.google.com 等。
  2. 以 full: 开头,完整匹配。e.g: full:google.com 只会匹配自身。
  3. 以 keyword: 开头,关键字匹配。e.g: keyword:google.com 会匹配包含这个字段的域名,如 google.com.hk, www.google.com.hk。
  4. 以 regexp: 开头,正则匹配。e.g: "regexp:.goo.*.com$" 匹配 "www.google.com" 或 "fonts.googleapis.com",但不匹配 "google.com"。

如果没有指定匹配方式,默认为域匹配。

匹配方式按如下顺序生效: full、domain优先, regexp、keyword次之,regexp 和 keyword 规则生效顺序为规则导入的顺序。

数据下载及转换: geosite.dat域名规则数据下载:https://github.com/Loyalsoldier/v2ray-rules-dat geosite.dat数据转换为文本格式工具: https://github.com/urlesistiana/v2dat

编译cre2: apt-get install libssl-dev libre2-dev automake libtool texinfo cd smartdns/cre2 ./autogen.sh cd build ../configure make install ldconfig

SmartDNS官网:https://pymumu.github.io/smartdns

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.