As soon as you are using VMs in an enterprise environment, you may want to change the IPs or DNS servers of a VM, for example, to connect to your domain controller. To change these, you need to navigate back to the network address of the VM.
There, you click on DNS servers and afterwards you change the option to Custom and enter the IP addresses of your DNS server:
To change the IP, you click on IP configurations. Then, click on the IP configurations section. After that, you can change the Assignment option from Dynamic to Static and change the IP address to an IP of your choice within the subnet: