resolv.conf
(/etc/resolv.conf)This file contains DNS information and is usually automatically generated.
If there is a need to modify the DNS setup, then this is done, together with the interfaces and dhcpcd.conf files.
Modify DNS
In some setups, it is necessary to manually configure the DNS setup.
The configuration is done from a SSH terminal or in DINGO-Manager.
We recommend using Putty (https://www.putty.org/) when doing the configuration via SSH.
In the example below, we are going to use the DNS servers: 193.75.75.75 and 193.75.75.193
It is also recommended in some cases to add the IP of the network gateway as DNS server.
Here are the new instructions:
-
sudo nano /etc/resolv.conf.head
Add these lines:
nameserver 193.75.75.75
nameserver 193.75.75.193
Ctrl + X to close, hit y to save changes.
- sudo resolvconf -u
Here are the instructions:
-
sudo nano /etc/dhcpcd.confAdd line to the bottom of the file:static domain_name_servers=193.75.75.75 193.75.75.193Ctrl + X to close, hit y to save changes. -
sudo nano /etc/network/interfacesAdd line to file, after gateway (see screenshot):dns-nameservers 193.75.75.75 193.75.75.193Ctrl + X to close, hit y to save changes. -
sudo nano /etc/resolv.confAdd these lines (see screenshot):nameserver 193.75.75.75nameserver 193.75.75.193Ctrl + X to close, hit y to save changes. sudo reboot