Fastest and easiest tool to update system wide DNS with help of some predefined providers.
Here is a list of providers that are currently supported:
- Shecan
- Cloudflare
- OpenDNS
- AdGuard
- 403 (unsafe, Iranian gov based)
- RadarGame(unsafe, Iranian gov based)
- ...
Feel free to add more providers by creating a pull request. :)
To change DNS to Shecan:
sudo dnsmod -p Shecan
Or to change DNS to Cloudflare:
sudo dnsmod -p Cloudflare
Or even a custom DNS:
sudo dnsmod -s 1.2.3.4 5.6.7.8
options:
-h, --help show this help message and exit
-p {Shecan, Cloudflare, Google, OpenDNS, AdGuard, 403, RadarGame}, --provider {Shecan, Cloudflare, Google, OpenDNS, AdGuard, 403, RadarGame}
Choose a DNS provider from Shecan, Cloudflare, Google, OpenDNS, AdGuard, 403
-s DNS1 DNS2, --set DNS1 DNS2
Set custom DNS
-c, --check Check current DNS config
-t, --test Test connection
-r, --restore Restore DNS
-u, --update Update DNSMod
-v, --version Show version
curl -sfL https://raw.githubusercontent.com/smb-h/dnsmod/main/install.sh | sudo bash -
- python 3
- python 3 requests library
- Add more providers
- Add Windows support
- Add update functionality (arguments: -u, --update)
- Make messages colorful (warnings in yellow, errors in red, success in green)
Project is under GPL3.
Inspired by Ali