Baike.dev
All toolsOnline toolsAI codingTrendingOpen sourceNewsSubmit
Log in
< Back to tools
G

greendns

> DevOps
Open source

A nonpoisonous and CDN-friendly Recursive DNS Resolver

200 stars0 likes0 views
WebsiteGitHub

About

A nonpoisonous and CDN-friendly Recursive DNS Resolver

greendns

A DNS recursive resolve server to avoid result being poisoned and friendly to CDN. It will qeury dns servers at the same time and don't wait for all responses. It's more efficient and quicker than ChinaDNS.

CDN-friendly means the resolved IP is the best(Same ISP and the nearest). The Foreign DNS with edns-client-subnet returned IP is not that accurate, especially for the local small ISP.

You must config at least two dns servers. One part is local and poisoned, the other part is unpoisoned(tunnel through VPN or use OpenDNS 443/5353 port, dnscrypt-proxy is recommended).

How it works

…

It has two assumptions,

  • the polluted domain is foreign.
  • the A record in poisoned response is foreign.

Install

bash
pip install greendns

Run

terminal command

bash
greendns -r greendns

daemon service

go to services

Dockerfile

go to greendns-container

docker stack (recommended)

go to greendns-stack

Test

bash
dig www.google.com @127.0.0.1 -p1053

Configure

…

Perf

benchmark result

perf.md

profile

prof.md

Acknowledgements

  • @clowwindy: the author of the ChinaDNS

License

This project is under the MIT license. See the LICENSE file for the full license text.

Issues· 1 open

View all issuesOpen on GitHub

No open issues yet, or sync has not completed.

> Tags

Pythoncdnchinadnsdns-resolverprivate-dns

No comments yet. Be the first to share.

> Details

PublishedAug 1, 2026
UpdatedSep 18, 2026
CategoryDevOps
PricingOpen source

> Related tools

D
Docker
容器化平台,标准化应用交付
G
GitHub Actions
GitHub 原生 CI/CD 工作流
N
Nginx
高性能 Web 服务器与反向代理