A simple Bash script to quickly switch your system DNS servers to popular providers like Shecan, Radar, Electro, Google, and more — designed for gaming, reduced ping, bypassing censorship, and stable connections.
🇮🇷 Built for users in Iran and anyone looking for fast and reliable DNS switching.
-
Interactive CLI to choose DNS providers
-
Auto backup of
/etc/resolv.conf
-
Supports public and local DNS:
- Shecan
- Radar
- Electro
- DNS Pro
- 403
- Begzar
- Cloudflare
-
Includes “Reset to Default” option (127.0.0.53)
-
Preserves custom
options
andsearch
lines
git clone https://github.com/Linuxmaster14/dns-switcher.git
cd dns-switcher
chmod +x dns-switcher.sh
sudo ./dns-switcher.sh
sudo
or as root to update system DNS.
This script includes a curated list of reliable DNS servers used widely in Iran for bypassing restrictions and improving latency:
Provider | Primary IP | Secondary IP |
---|---|---|
Shecan | 178.22.122.100 | 185.51.200.2 |
Radar | 10.202.10.10 | 10.202.10.11 |
Electro | 78.157.42.100 | 78.157.42.101 |
Begzar | 185.55.226.26 | 185.55.226.25 |
DNS Pro | 87.107.110.109 | 87.107.110.110 |
403. | 10.202.10.202 | 10.202.10.102 |
8.8.8.8 | 8.8.4.4 | |
Cloudflare | 1.1.1.1 | 1.0.0.1 |
MIT – free for personal and commercial use.
See LICENSE
for details.
Made with Linuxmaster14