VisibleThread -
Help Center Find helpful articles on different VisibleThread Products

Follow

How to setup static I.P and D.N.S for Ubuntu 18.04 with network interfaces and resolv.conf

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/interfaces

Once inside this file you will see the following and notice were it says "dhcp"

example4.png

Change "dhcp" to "static" and make the below changes relevant to your network:

iface ens32 inet static
address 192.168.0.7 (this address is the static address you wish to use)
netmask 255.255.255.0
gateway 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

example1.png

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.service
 
 sudo rm /etc/resolv.conf
 
 sudo pico /etc/resolv.conf
 
# Add your nameserver in this file
 nameserver 192.168.0.8
 
# Now reboot
 
sudo reboot now

Note: 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

example2.png

Was this article helpful?
0 out of 0 found this helpful

Get Additional Help

Visit our Helpdesk for additional help and support.