2.7. Changing the IP-Address

You servers IP Addresses can be changed in /etc/network/interfaces. The IP is configured with the address variable.

nextron@sc-front:~$ sudo vi /etc/network/interfaces
auto ens32
iface ens32 inet static


There might be a case where the name of the network interface (in this example: ens32) is different. To verify this you can run ip a and see the name of the network interface.

The new IP can be applied with the command sudo systemctl restart networking.

Make sure to update the A-Records in your local DNS Server to reflect the IP changes.

2.7.1. Verifying DNS Settings

To verify if your components are using the correct DNS Server, you can inspect the file /etc/resolv.conf:

nextron@sc-front:~$ cat /etc/resolv.conf
search example.org

If you see errors in this configuration, you can change it with the following command:

nextron@sc-front:~$ sudoedit /etc/resolv.conf