Set a DNS server to allow the compute gateway and workload VMs to resolve fully-qualified domain names (FQDNs) to IP addresses.
- Log in to the VMC Console at https://vmc.vmware.com.
- Click View Details on the SDDC card.
- Click Network.
- Under Compute Gateway, click DNS.
- Click Edit and enter the IP addresses for DNS Server 1 and, optionally, DNS Server 2.
Both DNS servers must be able to resolve all intended FQDNs. Do not add one public DNS server and one private (on-premises) DNS server. If you do, FQDN resolution becomes unpredictable.
What to do next
If you have configured private DNS servers and you are using a non-default logical network for the compute gateway that uses DHCP, configure your compute gateway VPN to allow DNS requests over the VPN tunnel. Select cgw-dns-network as one of the local networks for the VPN. See Create a Compute VPN.