Skip to content

jxinging/DNSwitcher

Repository files navigation

DNSwitcher

检查域名对应的多台主机的网络情况,并调用 dnspod-api 自动切换 DNS 解析到网络较好的主机

Install

git clone https://github.com/jinxingxing/DNSwitcher
cd DNSwitcher/
git submodule init && git submodule update
cd dnspod-python && python setup.py install && cd ..
python setup.py install

Usage

  1. cp dnswitcher-example.json /etc/dnswitcher.json
  2. 编辑 /etc/dnswitcher.jsonemailpassword 字段,用于登陆 dnspod。编辑 domains 字段配置需要自动切换的域名和主机(或 CNAME)
  3. dnswitcher /etc/dnswitcher.json

TODO

About

Smart DNS Switcher (dnspod)

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages