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

Note:

It is also recommended in some cases to add the IP of the network gateway as DNS server.

Here are the new instructions:

  1. 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.

  2. sudo resolvconf -u

Here are the instructions:

  1. sudo nano /etc/dhcpcd.conf

    Add line to the bottom of the file:

    static domain_name_servers=193.75.75.75 193.75.75.193

    Ctrl + X to close, hit y to save changes.

  2. sudo nano /etc/network/interfaces

    Add line to file, after gateway (see screenshot):

    dns-nameservers 193.75.75.75 193.75.75.193

    Ctrl + X to close, hit y to save changes.

  3. sudo nano /etc/resolv.conf

    Add these lines (see screenshot):

    nameserver 193.75.75.75

    nameserver 193.75.75.193

    Ctrl + X to close, hit y to save changes.

  4. sudo reboot