I want to change (replace) the default DNS servers (which are 8.8.8.8
and 8.8.4.4
) on VMware ESXi 7.0u1 (specifically custom ISO for Fujitsu servers downloaded from official VMware servers) via SSH shell. Actually, I want to use it in %firstboot
section of my Kickstart file.
I tried to run the following commands, which work but only until I reboot the server. Then the DNS servers are reset to the default ones.
esxcli network ip dns server remove -a
esxcli network ip dns server add -s "$dns"
Is there anything else I need to run to make the change permanent?
From your SSH connection you should be able to use "dcui" command and modify your DNS without losing your configuration after a reboot.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.