DnsChanger

A simple package that helps you to set your linux dns to several DNS servers

Install on Debian (and Debian-based distros like Ubuntu & Linux Mint)

Download the .deb package file from the latest release.

Install on Arch Linux (and Arch-based distros like Parch Linux & Artix Linux)

DnsChanger is available on AUR. You can use AUR helpers like yay or paru to Install it, but feel free to do it your own way.

Install on Arch Linux with yay

yay -S dnsch

Install on Arch Linux with paru

paru -S dnsch

Build and install from source

Clone the project

git clone https://github.com/MohammadRostamiorg/dnsChanger.git && cd dnsChanger

Install package

makepkg -sri

To set DNS server

Warning: This program must be used with sudo.
sudo dnsch --set {g | sh | ag | cf | 403 | bg | rd | el}

To set your custom DNS servers

sudo dnsch --set 1.2.3.4 1.2.3.4

To clear DNS servers

sudo dnsch {-c | --clear}

To ping DNS servers

sudo dnsch {-p | --ping}

To restore system default DNS servers

sudo dnsch {-r | --restore}