Using SSL VPN in VMware NSX for vSphere results in intermittent DNS resolution
search cancel

Using SSL VPN in VMware NSX for vSphere results in intermittent DNS resolution


Article ID: 341225


Updated On:


VMware NSX Networking


When you use an SSL VPN connection to an Edge device in VMware NSX for vSphere, you experience these symptoms:
  • DNS resolution is intermittent or unsuccessfu.
  • DNS resolution uses incorrect or external DNS server instead of the VPN DNS servers provided in the IP pool.
  • Flushing the DNS resolver cache temporarily provides successful DNS resolution.


VMware NSX for vSphere 6.1.x
VMware NSX for vSphere 6.2.x
VMware NSX for vSphere 6.0.x


This issue occurs because the DNS server entries are added before the route entries during tunnel creation. In this case, cached DNS information can cause negative DNS records..


This is a known issue affecting VMware NSX 6.0.x, 6.1.x and 6.2.x.

Currently, there is no resolution.

To work around the issue, download and extract the file attached to this article and run the extracted script. The script deletes and adds the DNS entries after the Windows VPN client is connected. It changes the order of the route entries and then the DNS entries. The script also stops and starts the DNS cache using a Windows service API call.

To run the script:
  1. Download the attached zip file
  2. Open the zip file and extract the SetDNS.vbs file.

    Note: To examine the contents of the .vbs script, open the file using Notepad.

  3. Log in to the VMware vSphere Web Client and navigate to Networking & Security.
  4. Click NSX Edge.
  5. Double-click SSLVPN Edge Device.
  6. Navigate to Manage > SSL VPN-Plus > Login/Logoff Scripts.
  7. Click the green + symbol and navigate to the SetDNS.vbs file you extracted in Step 2.
  8. Ensure that the Login and Enabled options are selected and click OK.

Additional Information

To be alerted when this document is updated, click the Subscribe to Article link in the Actions box..在 VMware NSX for vSphere 中使用 SSL VPN 导致间歇性 DNS 解析
SSL VPN を VMware NSX for vSphere で使用すると、DNS 解決が断続的になる

Attachments get_app