Reply to Message

View discussion in a popup

Replying to:
NickDaGeekUK
Enthusiast
Enthusiast

@VDSB 

use putty to connect via ssh or if in vSphere open a console session

log in as root

you need to run vi

if your network it is on begins 10. the file you need to edit will be called /etc/systemd/network/10-static-en.network

if your network is on 192. most likely it will be called  /etc/systemd/network/192-static-en.network

move cursor down and to end of last line (which in my case was DNS=) and hit lower case o

this adds a new line

Domains=<mylocaldomain> 

make sure you have your full domain instead of the <> placeholder (in my case domain.local)

Check for typos if all good enter a colon followed by wq

:wq

to write out the file to disk and quit VI

you can then use the commands to restart the service daemon or simply go the whole hog as I did

type reboot

that should do it.

Kind regards,
Nick.

View solution in original post