/etc/resolv.conf file, and the old DNS server IP addresses remain present, as shown in the example below:VMware Cloud Foundation (VCF) 5.2.x
Starting in SDDC version 5.2, nmctl replaces vami_set_dns in the DNS configuration workflows. An issue occurs where nmctl fails to overwrite existing DNS settings that were previously configured using the legacy vami_set_dns command.
This behavior is no longer present in VCF 9.x and later, as the DNS configuration mechanism has been completely overhauled. In a VCF 5.x environment, use the following workaround:
Workaround:
su -/etc/systemd/ directory and edit the resolved.conf file with below command: vi resolved.conf"i" 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)