After updating DNS configurations through the SDDC UI, you may notice this did not take affect in the /etc/resolv.conf file and the old DNS server IPs are still present, see example below:
DNS change was successfully applied to child nodes such as ESXI and vCenter and reflected correctly in SDDC UI
VMware Cloud Foundation 5.2.x
Broadcom engineering is aware of this issue affecting SDDC manager 5.2 and is currently investigating.
This behavior is no longer present in VCF 9.x and later as the DNS configuration mechanism has been completely overhauled.
To resolve the issue please apply the following steps:
su -/etc/systemd/ directory and edit the resolved.conf file with below command:vi resolved.confi" to edit"DNS=" that can be found under [Resolve]ESC" to leave the edit mode:wq!systemctl restart systemd-resolved.service/etc/resolv.conf now contains the expected DNS entries.
Configure/Update DNS Server IP Address in SDDC Manager or the VCF Installer through Command Line (Not applicable for SDDC manager 5.2.x)