• Stars
    star
    5,533
  • Rank 7,410 (Top 0.2 %)
  • Language
    Ruby
  • License
    Other
  • Created over 11 years ago
  • Updated 24 days ago

Reviews

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

Repository Details

Chinese-specific configuration to improve your favorite DNS server. Best partner for chnroutes.

dnsmasq-china-list

Chinese-specific configuration to improve your favorite DNS server. Best partner for chnroutes.

  • Improve resolve speed for Chinese domains.

  • Get the best CDN node near you whenever possible, but don't compromise foreign CDN results so you also get best CDN node for your VPN at the same time.

  • Block ISP ads on NXDOMAIN result (like 114so).

Details

  • accelerated-domains.china.conf: General domains to be accelerated.

    These domains have a better resolving speed and/or result when using a Chinese DNS server.

    To determine if a domain is eligible, one of the criteria below must be met:

  • The domain's NS server is located in China mainland.

  • The domain will resolve to an IP located in China mainland when using a Chinese DNS server, but not always do when using a foreign DNS server (For example, CDN accelerated sites that have node in China). This however does not include those having node near China mainland, like in Japan, Hong Kong, Taiwan, etc.

Please don't add subdomains if the top domain is already in the list. This includes all .cn domains which are already matched by the /cn/ rule.

  • google.china.conf: Google domains to be accelerated.

    These domains are resolved to Google China servers when using a Chinese DNS. In most conditions this will yield better page load time for sites using Google's web services, e.g. Google Web Fonts and AdSense.

    Bear in mind that they are not considered stable. Use at your own risk.

  • apple.china.conf: Apple domains to be accelerated.

    Some ISPs (often smaller ones) have problem accessing Apple's assets using their China mainland CDN servers. Please consider remove this file if that happens to you. See #156 for some more info.

  • bogus-nxdomain.china.conf: Known addresses that are hijacking NXDOMAIN results returned by DNS servers.

Usage

Automatic Installation (recommended)

  1. Fetch the installer from github (or a mirror): wget https://raw.githubusercontent.com/felixonmars/dnsmasq-china-list/master/install.sh
  2. (Optional) Edit it to use your favorite DNS server and/or another mirror to download the list.
  3. Run it as root: sudo ./install.sh

You can save the installer and run it again to update the list regularly.

Manual Installation

  1. Place accelerated-domains.china.conf, bogus-nxdomain.china.conf (and optionally google.china.conf, apple.china.conf) under /etc/dnsmasq.d/ (Create the folder if it does not exist).
  2. Uncomment "conf-dir=/etc/dnsmasq.d" in /etc/dnsmasq.conf
  3. (Optional) Place dnsmasq-update-china-list into /usr/bin/
  4. (Optional) Make custom DNS server configuration and/or other services' configuration.
# change the default DNS server to 202.96.128.86
make SERVER=202.96.128.86 dnsmasq
# generate unbound's configuration
make unbound
# generate bind's configuration
make bind
# full example of generating dnscrypt-proxy forwarding rules for Windows
make SERVER=101.6.6.6 NEWLINE=DOS dnscrypt-proxy

License

Copyright Β© 2015 Felix Yan <[email protected]>
This work is free. You can redistribute it and/or modify it under the
terms of the Do What The Fuck You Want To Public License, Version 2,
as published by Sam Hocevar. See the LICENSE file for more details.

More Repositories

1

BaiduPCS-Go

Re-upload of iikira/BaiduPCS-Go
Go
911
star
2

fcitx5-pinyin-zhwiki

Fcitx 5 Pinyin Dictionary from zh.wikipedia.org
Python
561
star
3

ydcv

YouDao Console Version - Simple wrapper for Youdao online translate (Chinese <-> English) service API, as an alternative to the StarDict Console Version(sdcv).
Python
503
star
4

vps2arch

The fastest way to convert a VPS to Arch Linux! (forked from gitlab:drizzt/vps2arch)
Shell
274
star
5

archriscv-packages

Modified Arch Linux packages for archriscv
Shell
203
star
6

aur3-mirror

Git archive of the Arch User Repository 3. (Cloned from pkgbuild.com/git/aur-mirror.git)
Shell
61
star
7

chnroutes-alike

Personal collection of IP ranges not in China but work good enough
Python
26
star
8

archlinux-futils

Felix's Arch Linux utilities
Python
25
star
9

telegramirc

Telegram as your IRC client
Python
23
star
10

fcitx-tsundere

Fcitx Tsundere Addon
C
17
star
11

anycast-routes

Experimental collection of anycast routes
16
star
12

bottle-github-webhook

A very simple github post-receive web hook handler
Python
8
star
13

pmgmusic

PMG, a VOS clone for linux.
C
8
star
14

dotfiles

Yet another dotfiles repo
6
star
15

felixonmars

4
star
16

suds-ng

A lightweight SOAP python client for consuming Web Services forked from suds (https://fedorahosted.org/suds/).
Python
4
star
17

github-show-contributions-language

Userscript to show repository language next to your contribution history on GitHub
JavaScript
3
star
18

6rdctl

6rd Control Tool
Python
3
star
19

LogChecker

LogChecker macro for Moinmoin
Python
3
star
20

pacman-dkms

Pacman hook to trigger DKMS installation after kernel headers installed
2
star
21

froute

froute = Felix route, a simple route config tool for myself.
Shell
2
star
22

nss-no-cnnic

Patch to remove CNNIC and other suspect CA in China by default from nss in system-wide
2
star
23

volume_key

Unofficial mirror of https://pagure.io/volume_key.git
C
2
star
24

nvchecker-contrib

Additional source for nvchecker
2
star
25

openvpn-reloader

Reload your openvpn process when packet loss suddenly arise.
Python
2
star
26

driver-center

Collect anonymous hardware info and give correct drivers to you
Python
1
star
27

panda-topbar

System topbar.
C++
1
star
28

autoswap

(Deprecated) Systemd unit to enable all swap area in current machine
1
star
29

tagbot

Tagbot for Twitter - Instant Tagging Bot Using Streaming API
Python
1
star
30

debootstrap

Unofficial mirror of https://anonscm.debian.org/git/d-i/debootstrap.git
Shell
1
star
31

select-to-speech

A simple select-to-speech tool for Linux
Python
1
star
32

process

process Action for Moinmoin
Python
1
star