This repository has been archived by the owner. It is now read-only.
No description, website, or topics provided.
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
.gitignore
Dockerfile
LICENSE
README.md
config.js
docker-compose.yml
hosts
index.js
package-lock.json
package.json

README.md

It's been deprecated! Recommend to use freedns-go instead.

已经不建议使用这个库!

free-dns

A high-efficient-cache and anti-spoofing DNS Server.

The upstream base on the Google's DNS-Over-HTTPS.

Setup

Server

git clone https://github.com/Chenyao2333/freedns.git
cd freedns
npm install
sudo node index.js

You can set the EDNS_IP in index.js to your subnet, to utilize EDNS optimize upstream results.

And you can open http://localhost:5353/ in browser to check internal status.

Client

Change the DNS server ip to your setuped freedns ip address. Different OS has different way to change DNS server, you can get help through Baidu or Google. Or just change your router's DHCP DNS to freedns is an alternative way.

Cache

freedns uses "Lazy Update" as cache policy. If a requst is experied, it just returns a old results and add this request to queue and update results when connecting is idle.