A simple and interactive CLI tool built with Go to change your Windows DNS settings using a TUI (Text User Interface). It uses the tview library to create a smooth text-based GUI inside the terminal.
⚠️ Requires administrator privileges to modify network settings.
- Browse and switch DNS configurations from a list
- Save and load multiple DNS profiles using local JSON storage
- Automatically applies the selected DNS to your active network adapter
- Simple keyboard navigation via terminal interface
- Optional batch script or scheduled task support for admin access
git clone https://github.com/your-username/DNSChangerCLI.git
cd DNSChangerCLIMake sure you have Go installed
go build -o dnschanger.exeRun the application (must be as Administrator):
dnschanger.exeOr via batch script:
run_with_admin.batDNS configurations are saved in a JSON file:
[
{
"Name": "Google DNS",
"PrimaryDNS": "8.8.8.8",
"SecondaryDNS": "8.8.4.4"
},
{
"Name": "Cloudflare",
"PrimaryDNS": "1.1.1.1",
"SecondaryDNS": "1.0.0.1"
}
]You can edit (interface_configs.json) manually or add new entries from the UI.
- rivo/tview
- Standard Go libraries Install them with:
go get github.com/rivo/tview