Skip to content

About

Switch Windows DNS with one click

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

6 Commits

Folders and files

Repository files navigation

DNS Profile Manager icon

DNS Profile Manager

A small Windows app for switching your DNS servers with one click. Save your favorite DNS pairs as profiles, pick a network adapter, and press Connect / Disconnect.

screenshot

Features

  • Save any number of DNS profiles (name + primary + secondary IPv4 DNS)
  • Add, edit, and remove profiles
  • Choose which network adapter to change (defaults to Wi-Fi)
  • One-click Connect / Disconnect (Disconnect resets the adapter to automatic DNS)
  • Flushes the DNS cache after every change
  • Installs like a normal app: Start menu + Desktop shortcut, listed in Settings > Apps

Install

  1. Go to the Releases page and download DnsProfileManager-Installer.zip.
  2. Extract the whole ZIP (don't run it from inside the ZIP).
  3. Double-click Install.bat and accept the UAC prompt.

Uninstall from Settings > Apps > Installed apps > DNS Profile Manager.

Windows SmartScreen may warn about the files because they are not code-signed. Click More info > Run anyway. The whole source is in this repository, so you can read exactly what it does.

Requirements

  • Windows 10 or 11
  • Windows PowerShell 5.1 (built in)
  • Administrator permission (needed to change DNS settings)

How it works

The app is a PowerShell + Windows Forms script (app/DnsProfileManager.ps1). It uses the built-in Get-DnsClientServerAddress and Set-DnsClientServerAddress cmdlets. Profiles are stored in %APPDATA%\DnsProfileManager\profiles.json. Nothing runs in the background after you close the window, and the DNS setting you applied stays in Windows until you disconnect.

Build a single Setup.exe (optional)

Install Inno Setup 6.3+, open DnsProfileManager.iss, and press Compile. The installer is created in output/.

Run without installing

Right-click app/DnsProfileManager.ps1 > Run with PowerShell.

Credits

The original script was written with the help of ChatGPT (OpenAI). The installer, icon, Edit feature, and packaging were built with the help of Claude (Anthropic).

License

MIT

About

Switch Windows DNS with one click

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages