In the vSphere web client under Workload Management, the Supervisor cluster is in Error state with an error message similar to the following where my-hostname.local is the name of a host using the .local domain and can vary by environment:
Unable to resolve the host my-hostname.local on control plane VM 1234a56c78b9c10def1hijk123lm4n5o6p789. The hostname ends with the '.local' top level domain, which requires 'local' to be included in the management DNS search domains.
ping: my-hostname.local: Temporary failure in name resolution
resolvectl status
vSphere with Tanzu 7.0
vSphere with Tanzu 8.0
This issue can occur regardless of whether the environment is managed by Tanzu Mission Control (TMC) or not.
Multi-label names with the domain suffix ".local
" are resolved using MulticastDNS on all local interfaces where MulticastDNS is enabled. As with LLMNR, IPv4 address lookups are sent via IPv4 and IPv6 address lookups are sent via IPv6.
Queries for multi-label names are routed via unicast DNS on local interfaces that have a DNS server configured, plus the globally configured DNS servers if there are any. Which interfaces are used is determined by the routing logic based on search and route-only domains, described below. Note that by default, lookups for domains with the ".local
" suffix are not routed to DNS servers, unless the domain is specified explicitly as routing or search domain for the DNS server and interface. This means that on networks where the ".local
" domain is defined in a site-specific DNS server, explicit search or routing domains need to be configured to make lookups work within this DNS domain. Note that these days, it's generally recommended to avoid defining ".local
" in a DNS server, as RFC6762 reserves this domain for exclusive MulticastDNS use.
Please see the below for a workaround in using .local in a non-production environment.
Overview:
root@vcsa-01a [ ~ ]# dcli com vmware vcenter namespacemanagement clusters list
|---------|------------|---------------------------------------------------------------------------------|-----------------|-------------|
|cluster |cluster_name|stats |kubernetes_status|config_status|
|---------|------------|---------------------------------------------------------------------------------|-----------------|-------------|
|domain-c8| ||--------|----------------|-----------|------------|---------------|------------||WARNING |RUNNING |
| | ||cpu_used|storage_capacity|memory_used|cpu_capacity|memory_capacity|storage_used|| | |
| | ||--------|----------------|-----------|------------|---------------|------------|| | |
| | ||0 |0 |0 |0 |0 |2048 || | |
| | ||--------|----------------|-----------|------------|---------------|------------|| | |
|---------|------------|---------------------------------------------------------------------------------|-----------------|-------------|
root@vcsa-01a [ ~ ]#
root@vcsa-01a [ ~ ]# dcli com vmware vcenter namespacemanagement clusters get --cluster domain-c8 | grep -A 1 master_DNS_search_domains master_DNS_search_domains: - corp.tanzu root@vcsa-01a [ ~ ]#
root@vcsa-01a [ ~ ]# dcli com vmware vcenter namespacemanagement clusters update --cluster domain-c8 --master-dns-search-domains test.local
root@vcsa-01a [ ~ ]# dcli com vmware vcenter namespacemanagement clusters get --cluster domain-c8 | grep -A 1 master_DNS_search_domains master_DNS_search_domains: - test.local
10.1.12.34 my-center-host.local
resolvectl status
resolvectl domain eth0 testds.local