How to change the DNS server IP's in TKGm clusters
search cancel

How to change the DNS server IP's in TKGm clusters

book

Article ID: 383251

calendar_today

Updated On:

Products

Tanzu Kubernetes Runtime

Issue/Introduction

It might be necessary to change the DNS servers in the environment, which needs to be updated in the TKGm clusters

Applications will fail if the DNS server can't be reached.

Environment

TKGm

DNS can be physical/VM/NSX-T server.

Cause

DNS IP's address change in the environment. 

Resolution

A DHCP server will push DNS configuration to the nodes via eth0.

DNS IPs need to be updated in NSX-T segment DHCP settings.

As soon as the DNS IPs are updated in the NSX-T segment, new DNS IPs are pushed to the nodes.

A restart of the network service is needed to reflect the changes in the nodes. 

systemctl restart networking.service


DNS Ip's can be verified in the node using the below command.

resolvectl status