Skip to content

smb-h/dnsmod

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

34 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

DNSMod

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:

Feel free to add more providers by creating a pull request. :)

Usage:

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

Install/Update with one simple command:

curl -sfL https://raw.githubusercontent.com/smb-h/dnsmod/main/install.sh | sudo bash -

Dependencies

  1. python 3
  2. python 3 requests library

TODO

  • Add more providers
  • Add Windows support
  • Add update functionality (arguments: -u, --update)
  • Make messages colorful (warnings in yellow, errors in red, success in green)

LICENSE

Project is under GPL3.

Inspired by Ali