During an ESX install with a kickstart script setting a custom DNS with --nameserver while using --bootproto=dhcp gives the following warning:
bootproto was set to DHCP but "--nameserver=" was set. Nameservers are ignored with DHCP
ESX 7.x, 8.x, 9.x
The ESXi kickstart --nameserver parameter is only supported with --bootproto=static. This is mentioned in the installation documentation:
--nameserver=Designates the primary name server as an IP address. Used with the --bootproto=static option. Omit this option if you do not intend to use DNS.To use custom DNS while using ESX kickstart install scripts use one of the following options:
--bootproto=static is set.%firstboot. Sample:
%firstboot does not work with secure boot. Please see the installation documentation for more details about %firstboot.%firstboot --interpreter=busybox# Add custom DNS serverslocalcli network ip dns server add --server=#.#.#.#localcli network ip dns server add --server=#.#.#.#