this post will cover how you can easily fix the common DNS issue.
What do you need?
- Linux DVD (e.g. debian install dvd / iso is fine)
- sudo access or root access
- access via shell (ssh or direct)
First: Insert your DVD into the cdrom drive or mount the ISO via
Code for fstab could be:
/home/depot/Images/template/iso/debian-9.6.0-amd64-DVD-1.iso /media/cdrom udf,iso9660 loop 0 0
Add the DVD to your repo via
sudo apt-cdrom add
/etc/apt/sources.lsit and comment all repos out that lead to the internet as they cannot be resolved over DNS.
When done refresh the package list
sudo apt-get update
Then install the resolvconf package
sudo apt-get install resolvconf
Add in the primary interface some nameservers:
sudo vi /etc/network/interfaces
dns-nameserver 22.214.171.124 126.96.36.199 188.8.131.52
Note that you can add as many as you want in a single line. If you have IPv6 too, just add another line into your IPv6 config too.
The config should like this then:
Once done you need to reload the interface:
sudo ifdown eno1 && sudo ifup eno1
Be sure to write this in one line otherwise your SSH connection will be lost.
resolvconf will get the new DNS servers and everything works again.
Over and Out,