Coder Social home page Coder Social logo

smartchinadns's Introduction

Smart China DNS

这是一个更好的 ChinaDNS,旨在用最智能的方式返回正确的结果。

由于 GFWList 更新并不总是及时全面,单纯用 GFWList 模式的话有时候经常会遇到某个域名莫名其妙被污染了,又得去添加;

又不希望用 CHNRoute 模式导致所有外国网站都走代理。

所以做了一个 SmartChinaDNS,可以智能快速判断网站是否被墙,并且做出对应行为(IPSET)、返回正确结果。

SmartChinaDNS 将 GFWList 和 CHNRoute 的优点融合起来,为你提供正确的解析结果和被墙判断。

还提供了四种 IPv6 AAAA 记录过滤模式(仅国内、除国内、全屏蔽、不屏蔽)以更好地应对复杂的 IPv6 网络环境(出国质量差等问题)

配置

需要 Node.js ≥ 12

$ cp config.js.example config.js
$ npm install
$ node index

通常 config.js.example 里面的配置是开箱即用的, 不需要做其他修改.

注意

目前可能误伤一些使用不广泛的 CDN IP 或自建 CDN 的网站,导致它们被错误添加到 IPSET,这需要逐渐完善 CDN IP 范围列表来解决。

这是一个不完善的 DNS 服务器实现,并非 100% 符合 RFC 1035、RFC 1034 和 RFC 8484。

它不支持 EDNS,而且只支持 A、AAAA、CNAME、NS、MX、TXT 和 SOA 记录。

但是我认为这已经足够完成该服务器的设计目标用途,所以除非有特别关键的问题,否则不会添加额外的支持。

smartchinadns's People

Contributors

excitedcodes avatar

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.