This is a known issue affecting VMware Cloud on AWS and currently there is no resolution. Refer the workaround section for more details.
Workaround:
To workaround this issue, a static route must be manually created so the Windows VM knows how to route traffic to the Compute Gateway DNS Proxy:
- Add a Static persistent route in the guest VM using the following command:
route add 169.254.3.1 mask 255.255.255.255 <default GW IP> -p
- Where the default GW IP is the GW IP of the network in which the VM resides
e.g. If the VM resides in the 192.168.1.0/24 network, the command will look like the below:
route add 169.254.3.1 mask 255.255.255.255 192.168.1.1 -pNote: When using the Compute Gateway DNS Proxy for DNS resolution on Guest VMs, firewall rules for DNS do not need to be specifically configured on the Compute Gateway firewall.
- However, if you configure your own DNS server directly on a Guest VM, you will need to ensure all firewall rules are opened to allow DNS traffic through Compute Gateway to the DNS servers on TCP and UDP ports 53, with a source IP of the guest VMs and a destination of the DNS server IPs.
e.g. For using Google's public DNS (8.8.8.8 and 8.8.4.4) on a VM (192.168.1.10) you would require a 2 FW rules:
- allowing udp port 53 out from 192.168.1.0/24 to 8.8.8.8 and 8.8.4.4
- allowing tcp port 53 out from 192.168.1.0/24 to 8.8.8.8 and 8.8.4.4