VPN Connection Failed Due to Unsuccessful Domain Name Resolution Fix
Why Cisco AnyConnect and Secure Client say the VPN connection failed due to unsuccessful domain name resolution, and the fixes IT teams actually use, in order.
“The VPN connection failed due to unsuccessful domain name resolution” means your VPN client could not look up the IP address of the VPN server you typed in, so it never got as far as logging you in. In almost every case the fix is on your side: correct the server address, clear the client’s saved profile files, or sort out the DNS on the network you are using.
The message comes from Cisco AnyConnect (now called Cisco Secure Client in newer versions), which is what most universities and many employers use. The steps below are drawn from university IT knowledge bases, a Boston University incident report and Cisco Community threads. Paths and menu names can shift between client versions, so treat them as accurate as of October 2026 and check your organization’s own help pages too.
What the error actually means
When you click Connect, the client takes the server name, for example vpn.yourschool.edu, and asks a DNS server for its IP address. If that lookup fails or returns something useless, you get this error.
That gives you three places to look:
- The name itself. A typo, an old nickname or a stale entry saved in the client.
- The client’s saved files. AnyConnect keeps XML profile and preference files that can disagree with each other.
- The DNS server you are using. Your router, ISP or a public resolver may be failing or answering incorrectly.
| Likely cause | Typical clue | First fix to try |
|---|---|---|
| Wrong or old server name | The box shows a label like “School_VPN” instead of a full address | Type the full hostname from your IT department |
| Corrupted or mismatched XML files | Started after an update or profile change | Delete the profile and preference XML files |
| Local or ISP DNS problem | Works on another network, fails at home | Restart the router, flush DNS, check DNS settings |
| Broken client install | Nothing else helps | Uninstall and reinstall from your IT portal |
Fix 1: Check the server address in the client
This is the quickest fix and it is surprisingly common.
- Open Cisco AnyConnect or Cisco Secure Client.
- Look at the text in the connection box.
- If it shows a short label rather than a full address, delete it and type the hostname your IT department publishes.
Bucknell’s IT knowledge base describes exactly this: if the box shows the old “Bucknell_VPN” entry, replace it with vpn.bucknell.edu. Your organization’s hostname will be different, so get it from their official help page rather than guessing.
Fix 2: Clear the AnyConnect XML profile files (Windows)
If the address is right and it still fails, the client’s saved files may be out of sync. UConn’s troubleshooting guide says the error occurs when there is a mismatch between addresses in the XML files AnyConnect references, and that deleting them fixes it because the client re-creates them automatically.
Write down your VPN server address first. Then:
- Quit AnyConnect completely, including the icon in the taskbar’s hidden-icons area, so it is not running in the background.
- Open File Explorer and paste
C:\ProgramData\Cisco\Cisco AnyConnect Secure Mobility Client\into the address bar. ProgramData is hidden by default, so pasting the path is easiest. - Delete the file named
preferences_global.xml. - Open the
Profilesubfolder and delete the files ending in.xml. - Go to
C:\Users\<your Windows username>\AppData\Local\Cisco\Cisco AnyConnect Secure Mobility Client\and deletepreferences.xml. - Restart the client, type the server address again and connect.
On newer Cisco Secure Client versions the folder may be named differently, so look for the Cisco folder under ProgramData if the exact path is missing.
A Cisco Community thread from an administrator backs this up. After upgrading AnyConnect, their users hit this error, and deleting the user’s Preferences.xml made it go away. In their case a Group Policy was overwriting the profile XML, which suggests the old preferences file conflicted with the new profile.
On a work or school device managed by IT, check with them before deleting these files. Profiles are often pushed centrally, and IT may prefer to fix the source.
Fix 3: Rule out your network’s DNS
If the error appears only on one network, the client is probably fine and your DNS is the problem.
In July 2020, Boston University’s IT status page reported that some users could not connect to the Cisco VPN and saw this exact message. The cause was a Verizon Fios DNS server, not BU’s VPN, and the incident was resolved the same day. In another Cisco Community thread, an admin said affected users could connect after power-cycling their modems, at least for a while, and that flushing DNS and removing static DNS settings did not fully solve it for everyone.
Work through these:
- Try another network. Connect your laptop to a phone hotspot and try the VPN. If it works there, the issue is your home or office network.
- Restart your modem and router. Unplug them, wait, and power them back on.
- Flush your DNS cache on Windows. Open Command Prompt and run
ipconfig /flushdns. Microsoft’s documentation says this clears the DNS client resolver cache, including cached failed lookups. It does not remove entries in your Hosts file. Microsoft’s own older pages disagree on whether admin rights are needed, so use an administrator Command Prompt if a normal one refuses. - Review custom DNS settings. If you or a utility set a custom DNS server on your network adapter or router, try switching back to automatic and test again. Some troubleshooting blogs say the error shows up more with custom public DNS, but we did not find Cisco confirming that, so treat it as something to test rather than a known rule.
- Public Wi-Fi. On hotel or café networks, open a browser and finish any sign-in page before starting the VPN.
Fix 4: Reinstall the client
When nothing else works, a clean reinstall is the standard last step. The University of South Dakota’s help page for this error recommends uninstalling and then reinstalling Cisco AnyConnect.
- Uninstall Cisco AnyConnect or Cisco Secure Client from Windows Settings, Apps.
- Restart the computer.
- Download the installer only from your university’s or employer’s official VPN page, not from a third-party download site. Cisco distributes the client through organizations, and IT pages usually link the version that matches their server.
- Install, enter the server address and connect.
Notes for IT admins
The community threads point to a few server-side and deployment checks worth making when many users report the error at once:
- Profile delivery. If a GPO or script replaces the profile XML, stale per-user
Preferences.xmlfiles can clash with it. One admin’s only reliable fix was deleting that file remotely and restarting. - HostAddress in the profile. A reply in the 2020 Cisco Community thread suggested checking whether the profile’s HostAddress uses a fully qualified domain name, and considering the front-end IP or pushed hosts entries as a workaround.
- Upstream DNS outages. As BU’s case shows, an ISP’s resolver can cause a burst of reports that has nothing to do with your gateway. Ask affected users which ISP they use before changing the VPN.
None of these come from official Cisco documentation; they are reports from administrators, so test them before rolling changes out widely.
When to contact your IT help desk
If the address is correct, the XML files have been cleared, the VPN fails on every network you try, and a reinstall did not help, hand it over to your IT team. Tell them the exact error text, your operating system, the client version and which networks you tested. They can see whether their VPN hostname or DNS records changed, which you cannot fix from your side.
Free apps worth trying
SponsoredSponsored links. Installing through them can earn us a commission, at no cost to you. Apps are free to download; some offer optional in-app purchases.
Frequently asked questions
Is the VPN server down when I see this error? +
Usually not. The message means your computer could not turn the VPN server's name into an IP address, so the client never reached the server. It is most often a typo or stale entry in the client, corrupted profile files, or a problem with the DNS server on your current network.
Will deleting the AnyConnect XML files break my VPN setup? +
According to UConn's IT knowledge base, the client re-creates these files automatically the next time it runs. You will have to type the server address again, so note it down first. On a work laptop managed by IT, ask them before deleting anything, because they may push the profile through policy.
Why does the VPN work on my phone hotspot but not at home? +
That points to your home network's DNS rather than the VPN client. Boston University traced one wave of this error to a Verizon Fios DNS server in 2020, and Cisco Community users report that restarting the modem helped temporarily. Restarting your router or using your ISP's official instructions to change DNS settings are the next things to try.
Does this error happen with consumer VPN apps like NordVPN or Proton VPN? +
The exact wording comes from Cisco AnyConnect and its successor, Cisco Secure Client, which are mostly used by universities and employers. Consumer apps show their own messages for DNS failures, though the underlying causes, such as a wrong server name or a broken local DNS, can be similar.
Sources
- Windows - Troubleshooting AnyConnect (UConn ITS Knowledge Base) (uconn.atlassian.net)
- Are you getting a "VPN connection failed due to unsuccessful domain name resolution" error when you try to connect? (Bucknell IT) (bucknell.teamdynamix.com)
- Resolved: Clients are receiving this error "The VPN connection failed due to unsuccessful domain name resolution." (Boston University IS&T) (bu.edu)
- AnyConnect failes to connect due to unsuccessful domain name resolution (Cisco Community) (community.cisco.com)
- The VPN connection failed due to unsuccessful domain name resolution (Cisco Community) (community.cisco.com)
- Domain Error Signing Into VPN (University of South Dakota) (td.usd.edu)
- Flush and reset a client resolver cache using the ipconfig command (Microsoft) (technet.microsoft.com)