To set up a static i.p for your VT Writer Server open interfaces with your choice text editor in this example I'll use pico
sudo pico /etc/network/interfacesOnce inside this file you will see the following and notice were it says "dhcp"
Change "dhcp" to "static" and make the below changes relevant to your network:
iface ens32 inet staticaddress 192.168.0.7 (this address is the static address you wish to use)netmask 255.255.255.0gateway 192.168.0.1
Note "ens32" this is the name of the network card and must be replaced with the correct name of your network card, to find this run:
ifconfig
Now that the static i.p is set you need to add the entry for the nameserver, to do this run the following commands:
sudo systemctl disable --now systemd-resolved.servicesudo rm /etc/resolv.confsudo pico /etc/resolv.conf# Add your nameserver in this filenameserver 192.168.0.8# Now rebootsudo reboot nowNote: You have set a static i.p remember this when trying to SSH back into the machine!
To test D.N.S run:
nslookup <domainonthenetwork>It should resolve like so