• Stars
    star
    180
  • Rank 213,097 (Top 5 %)
  • Language
    Go
  • License
    MIT License
  • Created almost 7 years ago
  • Updated almost 3 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Optimized DNS Server for Chinese users.

freedns-go

Optimized DNS Server for Chinese users.

freedns-go is CDN friendly since it prefers the domestic DNS upstream for websites having servers in mainland China.

Usage

Download the prebuilt binary from the releases page. Use -f 114.114.114.114:53 to set the upstream in China, and use -c 8.8.8.8:53 to set the upstream that returns usable results for foreign sites.

sudo ./freedns-go -f 114.114.114.114:53 -c 8.8.8.8:53 -l 0.0.0.0:53

Issue a request to the server just started:

host baidu.com 127.0.0.1
host google.com 127.0.0.1

baidu.com is dispatched to 114.114.114.114, but google.com is dispatched to 8.8.8.8 because its server is not located in China.

How does it work?

freedns-go tries to dispatch the request to a DNS upstream located in China, which is fast but maybe poisoned. If it detected any IP addresses not belonged to China, which means there is a chance that the domain is spoofed, then freedns-go uses the foreign upstream.

The cache policy is lazy cache. If there are some records are expired but in the cache, it will return the cached records and update it on the background.

Note: freedns-go just dispatches your queries to the optimal upstreams. Your network should be able to reach those upstreams (e.g. 8.8.8.8). You can do that by port forwarding, or any ways you like..

More Repositories

1

thuthesis

LaTeX Thesis Template for Tsinghua University
TeX
4,532
star
2

tunasync

Mirror job management tool.
Go
1,406
star
3

blogroll

世界一流兼容并包TUNA协会收集的周围同学们的Blog
Python
827
star
4

mirror-web

Source code of the web interface of https://mirrors.tuna.tsinghua.edu.cn/
HTML
690
star
5

oh-my-tuna

Keep calm and use TUNA mirrors.
Python
480
star
6

ipv6.tsinghua.edu.cn

CSS
399
star
7

tunasync-scripts

Custom scripts for mirror jobs
Python
390
star
8

issues

Code Unrelated Issues
336
star
9

THU-Beamer-Theme

A LaTeX beamer theme template for Tsinghua students.
TeX
305
star
10

fishroom

Message forwarding for multiple IM protocols
Python
283
star
11

collection

idea collections from TUNA
254
star
12

danmaQ

danmaku implemented in Qt5
JavaScript
185
star
13

opentuna

TUNA on AWS
TypeScript
142
star
14

gdanmaku-server

Web-based danmaku server
Python
123
star
15

tuna.moe

HTML
75
star
16

gdanmaku

play danmaku on any screen
Python
36
star
17

artwork

tuna artwork
26
star
18

QSerial

An advanced cross-platform serial port utility
C++
23
star
19

podcast

Voice from TUNA
CSS
19
star
20

scripts

Python
15
star
21

pub-mirror

Dart application to fully mirror the content on https://pub.dartlang.org/
Dart
15
star
22

mirrorhub

Redirects the user to a nearby mirror site.
Go
11
star
23

Books

Tracking Books of TUNA Library
9
star
24

registr

JavaScript
6
star
25

dataset-issues

Issues about academic dataset mirrors
5
star
26

tunaccount

Go
5
star
27

topdf

Automactically convert Office files to PDF via a web interface
PHP
4
star
28

live

CSS
3
star
29

pdns-ldap

Python
3
star
30

fakeTunet

a fake net.tsinghua.edu.cn
JavaScript
2
star
31

feed_tuna

Telegram shop/payment bot 金枪鱼喂食计划
Python
2
star
32

tunasay

tunasay is a configurable talking tuna
JavaScript
2
star
33

playbooks

Python
1
star
34

Cash

1
star
35

loglyzer

log analyzer for tuna mirrors
Python
1
star
36

docker-images

Repo for various docker images
Dockerfile
1
star
37

tunasync-monitor

Rust
1
star