Skip to content

How to add DNS servers to our connection#

To make life easier for users and not have to remember all the IPs to access the cluster TeideHPC has DNS server that allows us to resolve addresses without the need to remember the IP.

Nombre IP Address
dns1 10.5.22.37
dns2 10.5.22.38

To configure it, follow these steps:

Adding DNS server for Linux users#

Linux users can add TeideHPC DNS in the configuration of their VPN connection

Via command line.#

List your connections:

nmcli connection show

NAME                     UUID                                  TYPE      DEVICE
XXXXXXX                  00000000-7777-4f70-a5ca-a5be5c9551b5  wifi      --
....
teide hpc                12345678-1234-1234-1234-622e596d061e  vpn       --
....

With the following command add our DNS servers

nmcli c modify "<vpn-settings-name>" ipv4.dns '10.5.22.37 10.5.22.38'

Add domain for dns-search

nmcli c modify "<vpn-settings-name>" ipv4.dns-search 'hpc.iter.es'

Via graphical interface (Ubuntu and Debian)#

Open a linux terminal an write this command:

nm-connection-editor

Select your VPN connection name and edit it. In the IPv4 Settings tab you can add the DNS and the search domain as shown below.

openvpn linux folder

Adding DNS server for windows users.#

Before adding your client.ovpn configuration file to the OpenVPN client add the following lines:

dhcp-option DNS 8.8.8.8
dhcp-option DNS 10.5.22.37
dhcp-option DNS 10.5.22.38
push "dhcp-option hpc.iter.es"