Before you begin open a terminal with root user privileges.
There are 3 files that need to be edited.
First, edit the /etc/hosts file
Create a new line to show
127.0.0.1 <myhostname>.<myworkgroup/domain> <myhostname>
Press ctrl+o, then Enter to save. ctrl+x to quit
Edit the Hostname file
Optionally you could use the output redirect operator
echo "<myhostname>" > /etc/hostname
Edit the interfaces file
If you’re using DHCP you can use the following
auto eth0 allow-hotplug eth0 iface eth0 inet dhcp
Or more likely if you would like to statically configure your IP address
auto eth0 iface eth0 inet static address 192.0.2.7/24 gateway 192.0.2.254
If you prefer netmask in dot-decimal notation to CIDR notation you can use
auto eth0 iface eth0 inet static address 192.0.2.7 netmask 255.255.255.0 gateway 192.0.2.254
Update your system
apt update && apt upgrade -y
Edit your DNS settings. DNS settings can either be obtained via DHCP or by configuring it manually through the /etc/resolv.conf file
Then add your 3 allowed name servers in order of fail-over
nameserver 18.104.22.168 nameserver 22.214.171.124 nameserver 126.96.36.199
You could be using your Pi-Hole or your forward proxy DNSMASQ for your first name server.