Set DNS easily
Use npm:
sudo npm i -g @codetoz/dns
If you do not have nodejs or want to use executable versions: for linux and mac
# release version
version="v1.0.0"
# macos linux
platform=macos
# x64 arm64
arch=arm64
curl -o dns https://github.com/codetoz/dns/releases/download/$version/dns-$platform-$arch
after that you can move it to your bin
:
# linux
mv dns /usr/bin/
# mac
mv dns /usr/local/bin/
for windows download the executable file from below link and add it to your PATH
:
https://github.com/codetoz/dns/releases/download/v1.0.0/dns-win-x64.exe
dns [-s|set] <dns-name>
Set Chosen DNSdns [-alt|alter|change]
Set Random Dnsdns [-r|rm|remove|clear]
Remove DNSdns [-c|crt|current]
Show Current DNSdns [-l|ls|list]
List DNS Optionsdns [-v|--version|version]
Show Package Versiondns [ |-h|help]
List Commands