DNS configuration fails to update /etc/resolv.conf in SDDC Manager 5.2
search cancel

DNS configuration fails to update /etc/resolv.conf in SDDC Manager 5.2

book

Article ID: 437357

calendar_today

Updated On:

Products

VMware SDDC Manager / VCF Installer

Issue/Introduction

  • When DNS configurations are updated through the SDDC UI, the changes do not take effect in the /etc/resolv.conf file, and the old DNS server IP addresses remain present, as shown in the example below:

  • The DNS change applies successfully to child nodes, such as ESXi and vCenter, and reflects correctly in the SDDC UI.

Environment

VMware Cloud Foundation (VCF) 5.2.x

Cause

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.

Resolution

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:

  1. Take a snapshot of the SDDC Manager before making any changes.
  2. Log into the SDDC Manager through SSH with VCF and access root with: su -
  3. Navigate to the /etc/systemd/ directory and edit the resolved.conf file with below command: vi resolved.conf
  4. In the vi editor, press "i" to edit
  5. Remove the line starting with "DNS=" that can be found under [Resolve]
  6. Press "ESC" to leave the edit mode
  7. Save the file and exit vi with: :wq! 
  8. Restart resolved: systemctl restart systemd-resolved.service
  9. Verify that /etc/resolv.conf now contains the expected DNS entries.

Additional Information

Configure/Update DNS Server IP Address in SDDC Manager or the VCF Installer through Command Line (Not applicable for SDDC Manager 5.2.x)