GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - IovAnto/dns-switcher: Switch system DNS from a terminal UI, with a latency test before you commit

BranchesTags
Open more actions menu

Latest commit

 

History

30 Commits
30 Commits

Folders and files

NameName
Last commit message
Last commit date
.github/workflows
.github/workflows
 
 
src
src
 
 
.gitignore
.gitignore
 
 
Cargo.lock
Cargo.lock
 
 
Cargo.toml
Cargo.toml
 
 
LICENSE
LICENSE
 
 
PKGBUILD
PKGBUILD
 
 
README.md
README.md
 
 
demo.gif
demo.gif
 
 
demo.tape
demo.tape
 
 
install.sh
install.sh
 
 

Repository files navigation

dns-switcher

A fast terminal UI to switch DNS providers on Linux, written in Rust.

demo

Built on an event-driven loop that only redraws when something changes, so it sits at roughly 0% CPU while idle.

Features

  • Multi-profile DNS Support: Switch between resolver variants (e.g., Cloudflare Standard, Security, and Family; AdGuard Default and Family) with a single keypress
  • Unified TOML Configuration: Full control over all presets and custom resolvers via ~/.config/dns-switcher/config.toml
  • In-App Config Editor: Press e to edit configuration directly in $EDITOR with automatic live reloading
  • Latency Testing: Real-time probe to see which resolver responds fastest before applying
  • Automatic Detection: Detects the current active system DNS on startup
  • Responsive Terminal UI: Adapts smoothly to narrow or compact terminal windows; keyboard-driven, vim-friendly navigation

Requirements

  • Linux with systemd-resolved
  • iwd (Wi-Fi handling)
  • polkit (privilege elevation when applying changes)

Install

Arch Linux (AUR):

yay -S dns-switcher

Other distributions (install script):

curl -sSL https://raw.githubusercontent.com/IovAnto/dns-switcher/main/install.sh | bash

From source (requires Rust):

git clone https://github.com/IovAnto/dns-switcher.git
cd dns-switcher
cargo build --release
sudo install -Dm755 target/release/dns-switcher /usr/local/bin/dns-switcher

Usage

dns-switcher

Keyboard Shortcuts

Key Action
↑ ↓ / k j Move selection
← → / Tab Switch provider profile (e.g., Standard ↔ Security ↔ Family)
Enter Apply the selected provider and profile
t Run latency test
e Open config.toml in $EDITOR (live reloads on exit)
a Add a custom provider
d / Delete Delete the selected provider
r Reset DNS to ISP default
R Reset configuration file to default template
h Toggle help
q / Esc Quit

CLI Options

dns-switcher --help           # Show CLI options
dns-switcher --config         # Print path to config.toml
dns-switcher --edit           # Open config.toml in $EDITOR directly
dns-switcher --reset-config   # Reset config.toml to the default template

Built with

Rust · ratatui · crossterm · tokio

License

MIT

About

Switch system DNS from a terminal UI, with a latency test before you commit

Topics

dnslinuxratatuirustsystemd-resolvedterminaltokiotui

Resources

Readme
MIT license
Activity

Stars

5 stars

Watchers

0 watching

Forks

0 forks
Report repository

Releases

Packages

Contributors

Languages

You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.