Windows activation fails with 0x8007232A DNS server failure or 0x8007232B DNS name does not exist? One is an unreachable DNS server, the other missing KMS SRV records. slmgr, psping and registry steps, plus Azure VM fixes.
Home › Guides › KMS activation errors 0x8007232A and 0x8007232B
Last updated 22 November 2026
Both codes come from KMS activation and both are DNS problems, but they point at different places. 0x8007232A "DNS server failure" means the DNS query itself failed: the client couldn't reach a DNS server at all (server down, port 53 blocked, wrong or empty DNS server list). 0x8007232B "DNS name does not exist" means DNS answered, but the client couldn't find the KMS host's _vlmcs SRV records (no KMS host, records never published, or a wrong KMS host name set on the client). For 0x8007232A, fix the client's path to its DNS server first. For 0x8007232B, check the client setup key with slmgr.vbs /dlv, point the client at a KMS host with slmgr.vbs /skms <KMSHost_fqdn>:1688, test port 1688 and check that the KMS host publishes its SRV records. Then retry with cscript c:\windows\system32\slmgr.vbs /ato.
Windows Script Host shows one of these when you activate:
Error: 0x8007232A DNS server failure. Error: 0x8007232B DNS name does not exist.
| Code | What failed | Typical causes Microsoft lists | Start with |
|---|---|---|---|
| 0x8007232A DNS server failure | The DNS query: no DNS server answered | Custom DNS server down or unreachable, TCP/UDP port 53 blocked by a firewall, an Azure NSG or a network virtual appliance, no DNS resolution path to the KMS host, wrong or empty DNS servers on the adapter | ipconfig /all, then psping <dns-server-ip>:53 |
| 0x8007232B DNS name does not exist | Finding the KMS host: no SRV records for it | DNS blocked by firewall or NSG rules, a wrong or invalid KMS host name set on the client, the KMS host didn't publish SRV records to the client's DNS server and that server has no forwarding or recursion path to one that has them | slmgr.vbs /dlv, then slmgr.vbs /skms and psping <KMSHost-ip>:1688 |
By default a KMS client queries DNS for the servers that published _vlmcs SRV records in the client's membership zone. DNS returns the KMS hosts in random order; the client picks one and tries to open a session. If that works, the client caches the host name and uses it for the next renewal; if it fails, the client picks another host at random. Microsoft recommends keeping this automatic discovery. A KMS host registers its SRV record once every 24 hours by default.
ipconfig /all on the client and check that the DNS server list is correct and not empty.psping <dns-server-ip>:53.ipconfig /flushdns and retry: cscript c:\windows\system32\slmgr.vbs /ato.Microsoft gives four options for Azure VMs before deeper DNS troubleshooting:
20.118.99.224 doesn't work, Microsoft lists 40.83.235.53 as the other Azure KMS address.cscript c:\windows\system32\slmgr.vbs /skms 20.118.99.224:1688 cscript c:\windows\system32\slmgr.vbs /ato
ipconfig /all should list 168.63.129.16 (the address Azure VMs use for Azure DNS) first. If it's missing or the list is empty, set the virtual network's DNS servers to Default (Azure-provided) in the Azure portal (and check the VM's network interface, which can have its own custom DNS), restart the VM, run ipconfig /flushdns and retry slmgr.vbs /ato.ipconfig /all, and change them on the network interface or virtual network, not inside the VM (Microsoft says not to configure DNS servers on the VM itself). Test with psping <dns-server-ip>:53 and open UDP/TCP 53 in NSGs at the NIC, subnet and virtual network level and in any firewall.Install PsPing on the client (and on a self-hosted KMS host). Retry cscript c:\windows\system32\slmgr.vbs /ato after each step and move on only if you still get 0x8007232B.
cscript c:\windows\system32\slmgr.vbs /ipk <MAK product key>. Microsoft notes that images downloaded from Microsoft are generally volume-licensed media whose provided key is a MAK key.cscript c:\windows\system32\slmgr.vbs /dlv shows the installed key. If it isn't the right KMS client setup key, install it with slmgr.vbs /ipk <kms-client-setup-key> and restart the client.slmgr.vbs /ckms, then slmgr.vbs /skms <KMSHost_fqdn>:<KMSHost_Port>. For the Azure KMS service the host is azkms.core.windows.net on port 1688.psping <KMSHost-ip>:1688; on a self-hosted KMS host: psping <KMSClient-ip>:1688. If either fails, allow TCP/UDP 1688 between client and KMS host in every firewall (and port 53 to the DNS server in Azure NSGs).nslookup <KMSHost_fqdn> <intendedDNS_name>. If the name doesn't resolve, go to step 6; if it resolves, go to step 7.ipconfig /all on the KMS host, correct the DNS server list, restart the KMS host, run ipconfig /flushdns and retry on the client.DisableDnsPublishing under HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\SoftwareProtectionPlatform (Windows Server 2008 and Windows Vista used SL instead of SoftwareProtectionPlatform). 0 or undefined (default) means the host registers an SRV record every 24 hours; 1 means it doesn't, and you have to create the KMS SRV record by hand if your DNS doesn't take dynamic updates. If the entry is missing and you use dynamic DNS registration, leave it undefined or create it as a DWORD set to 0. Clients in several DNS domains need the KMS host configured to publish in each of them. Restart the KMS host after any change.If activation still fails after step 7, Microsoft's article says to contact Microsoft Support. Back up the registry before you change it.
The same DNS error text shows up outside activation: joining a domain can fail with error 0x0000232A "DNS server failure" when the client can't resolve the SRV records it uses to find a domain controller. If SRV records for domain controllers are missing too, see Netlogon events 5774 and 5781.
Look up any events logged with the activation failure in the Windows Event ID Lookup, copy the slmgr, psping and ipconfig lines from the PowerShell Cheat Sheet, pull the KMS host names out of nslookup output with the Regex Tester, check that the client and the KMS host are in the subnets your firewall rules allow with the IPv4 Subnet Calculator or IPv6 Subnet Calculator, and identify the vendor of a network appliance that drops DNS traffic with the MAC Vendor Lookup. Related guides: domain join error 0x0000232A, Netlogon events 5774 and 5781, DNS client timeouts with multiple DNS servers and common Windows DNS Server and DHCP Server errors.
KMS found but activation still fails with 0xC004F074, or the activation server refuses the key? See KMS activation error 0xC004F074 and activation errors 0xC004C003 and 0xC004C008.
Activation fails with event 8198 and 0xC0020017 or 0x8007139F instead? See event 8198 KMS contact failure.
Error 0x8007007B, DNS name does not exist, on ADBA clients? See ADBA clients not activating.
No DNS server configured (0x8007267C), no records found (0x8007251D) or 0x80092328 instead? See activation errors 0x8007267C, 0x8007251D and 0x80092328. KMS host logs event 12293? See KMS host not publishing to DNS.
Every Windows activation and KMS error code and event in one place: common Windows activation and KMS errors.
0x8007232A DNS server failure means the DNS query itself failed because no DNS server answered. 0x8007232B DNS name does not exist means DNS answered but the client found no SRV records for a KMS host.
It queries DNS for _vlmcs SRV records in its membership zone, gets the KMS hosts in random order, tries one and caches the name if the session works. A KMS host registers its SRV record once every 24 hours by default.
Clear the old setting with slmgr.vbs /ckms, then run slmgr.vbs /skms with the KMS host FQDN and port, for example port 1688, and retry with slmgr.vbs /ato.
DNS on TCP and UDP port 53 to find the KMS host, and port 1688 between the client and the KMS host. Microsoft uses psping to test both.
Point it at the Azure KMS service by IP with slmgr.vbs /skms 20.118.99.224:1688 (or 40.83.235.53) and run slmgr.vbs /ato, or fix the VM so it can reach Azure DNS at 168.63.129.16.
Runbooks, checklists and helpdesk templates: IT Admin Packs on Gumroad.