Skip to content
This repository has been archived by the owner on Apr 16, 2022. It is now read-only.

A small script to change the DNS server you use to resolve websites

Notifications You must be signed in to change notification settings

CleanMachine1/Linux-DNS-Set

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

31 Commits
 
 
 
 

Repository files navigation

Linux-DNS-Set

Installation and Usage

Open a terminal - Type the following commands (Or copy) -

wget https://raw.githubusercontent.com/CleanMachine1/Linux-DNS-Set/master/DNSSet.sh

chmod +x DNSSet.sh

./DNSSet.sh

Overview

This script simplifies changing DNS server on a Linux machine.

This saves having to try and find a guide online or run loads of commands.

Although there maybe GUI alternatives, this simple script WORKS and thats all that matters.

What it uses

resolvconf to set the DNS

systemctl to start it

sudo to make changes and write to specific files

dd for clearing the resolvconf file

cowsay to make the friendly Tux at the top

Removal

Whilst I am sure you could remove resolvconf, it is probably a dependency for something.

The best option is to run the command again and for default use 127.0.0.1 or for a reliable DNS use something like Google (8.8.8.8 & 8.8.4.4) or CloudFlare (1.1.1.1)

Warning

This script is not a toy and should be treated with respect or you could end up unable to connect to internet

Please note that this script may seem to be stopped as it installs the required packages. Also it clears after each stage to clean the terminal.

If you do make any mistakes, run the script again then enter your DNS server you want, if you want default, enter 127.0.0.1 then exit at the next prompt.

About

A small script to change the DNS server you use to resolve websites

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages