Guides

Follow our step-by-step guides to get online in a minute!

Changing DNS for Azire's ones on Linux

It is necessary to take note of your current DNS servers IP addresses before beginning the procedure. You will also need to take note of AzireVPN DNS servers as their IP addresses will be needed later. AzireVPN DNS servers are listed on the Locations and Servers page.

Choose your distribution below

Preventing DNS changes by DHCP

This procedure will change your DNS settings in a file called resolv.conf.

Your router through DHCP will certainly want to push the DNS servers of your ISP again and dnsmasq will modify this file, leaking your DNS requests. It is thus necessary to disable this behavior before modifying your DNS settings by editing the NetworkManager.conf file.

  1. In a console, open the file /etc/NetworkManager/NetworkManager.conf with nano or the text editor of your choice and with administrator rights.

    sudo nano /etc/NetworkManager/NetworkManager.conf
  2. Find the line beginning with dns= in the [main] section.

  3. The line should be replaced with dns=default. If the line does not exist, add it.

  4. If you used nano, save the changes by pressing Ctrl+X, Y then Enter.

  5. Restart NetworkManager with the following command:

    sudo /etc/init.d/network-manager restart
    sudo sv restart NetworkManager

Setting the DNS in NetworkManager

  1. Click on the NetworkManager icon in the task bar and find the physical network card currently in use. Its name appears in bold, take note of it.

  2. Right-click on the NetworkManager icon and select Edit Connections….

  3. Click on the name of the connection > .

  4. Select the IPv4 Settings tab.

  5. In the Method list, select Automatic (DHCP) addresses only.

  6. In the DNS Servers field, enter the IPv4 address for the chosen location.

Show optional steps
  1. In the DNS Servers field, enter the IPv4 address of another location. DNS servers IP addresses must be separated by commas (and optional spaces).

  1. Select the IPv6 Settings tab.

  2. In the Method list, select Automatic, addresses only.

  3. In the DNS Servers field, enter the IPv6 address for the chosen location.

Show optional steps
  1. In the DNS Servers field, enter the IPv6 address of another location. DNS servers IP addresses must be separated by commas (and optional spaces).

  1. Click on Save. The Network Connections window can now be closed.

  2. Click on the NetworkManager icon in the task bar and click on the connection you just edited to reload it and use the new settings.