How to update DNS server used by HAproxy for Workload Management
search cancel

How to update DNS server used by HAproxy for Workload Management

book

Article ID: 313949

calendar_today

Updated On:

Products

VMware vCenter Server

Issue/Introduction

To provide workaround steps to change the DNS server for HAproxy.

Resolution

Redeploying HAproxy is the best and officially supported method for changing the DNS server. If HAproxy is used as the backing load balancer for vSphere with Tanzu then the Supervisor cluster must be redeployed as well.

Workaround:
It is possible to change the DNS server without redeploying HAproxy however this is not an officially tested method and Broadcom reserves the right to mark the HAproxy/Supervisor cluster as unsupported if there are issues that cannot be fixed as a result of this change.

Below are the steps to change the DNS server:

  • SSH to HAproxy as the root user
  • Edit the following file using the vi command on the shell: /etc/systemd/network/10-management.network
  • Using edit mode, change the DNS server(s) to the desired address and then save/quit the file.
  • Reboot HAproxy for the changes to take effect