| Crates.io | switchdns |
| lib.rs | switchdns |
| version | 0.1.3 |
| created_at | 2025-07-20 09:50:02.969565+00 |
| updated_at | 2025-07-22 14:14:36.605195+00 |
| description | A CLI tool to switch DNS settings easily. |
| homepage | |
| repository | https://github.com/mhyrzt/switchdns |
| max_upload_size | |
| id | 1760960 |
| size | 39,604 |
A terminal-based tool to easily switch your system DNS servers on Linux.
You need Rust installed.
Install from crates.io:
cargo install switchdns
Or build manually from source:
cargo build --release
The binary will be at target/release/switchdns.
Run the tool:
switchdns
Enter to select and apply a DNS providerr to reset to automatic/ISP DNSq to quitYou can add your own DNS providers by creating a file named .switchdns in your home directory. Each line should be in the format:
Provider Name | 1.2.3.4 | 5.6.7.8
Example:
MyDNS | 123.45.67.89 | 98.76.54.32
/etc/resolv.conf to set the selected DNS servers/etc/resolv.confMIT
© 2025 Mahyar Riazati