What the error means
Error 0x8007232A is displayed as "DNS server failure" and appears in Windows Script Host when you try to activate Windows. It is a volume activation error: the Windows computer acts as a Key Management Services (KMS) client, and it needs DNS to find the KMS host that will activate it. Microsoft says this error occurs when Windows cannot contact a DNS server to resolve the KMS host address.
Microsoft separates it from a similar code. Error 0x8007232B means the DNS name does not exist. Error 0x8007232A means the DNS query itself failed, because the DNS server is unreachable or not responding. Microsoft's article applies to physical computers, on-premises virtual machines and Azure virtual machines, and it covers Windows Client and Windows Server.
Common causes
Microsoft lists these scenarios in which the error typically occurs:
- The client's DNS configuration points to a custom DNS server that is down or unreachable.
- Firewall rules block DNS traffic on TCP/UDP port 53.
- On Azure VMs, Network Security Group (NSG) rules block DNS traffic on TCP/UDP port 53.
- A network virtual appliance (NVA) intercepts and drops DNS traffic.
- The client is in a network that has no DNS resolution path to the KMS host.
- The client's network adapter has an incorrect or empty DNS server configuration.
How to fix it
1. Check the DNS configuration
Open an administrative Command Prompt and look at the DNS servers the machine uses:
ipconfig /allConfirm that the DNS Servers entry is present and correct. An empty or wrong entry is one of the causes Microsoft lists. For a physical computer or a non-Azure VM, Microsoft points to its guidelines for troubleshooting DNS-related activation issues and its general DNS troubleshooting guidance for detailed steps. Microsoft also suggests installing the PsPing tool on the client for best results.
2. Test that DNS traffic can pass
Microsoft's Azure steps use PsPing to test the path to the DNS server on port 53:
psping <dns-server-ip>:53If it fails, check that network security groups, firewalls (including Windows Firewall on the machine) and any network virtual appliance allow UDP and TCP port 53 between the machine and the DNS server. Run the test again, then flush the DNS cache and try activation again:
ipconfig /flushdns
cscript c:\windows\system32\slmgr.vbs /ato3. Azure VMs: activate without DNS
If you only want to activate the Azure VM and not troubleshoot DNS, Microsoft documents these commands in an administrative Command Prompt:
cscript c:\windows\system32\slmgr.vbs /skms 20.118.99.224:1688
cscript c:\windows\system32\slmgr.vbs /atoIf 20.118.99.224 does not work, Microsoft says to try 40.83.235.53. These are the addresses it gives for the Azure KMS service.
4. Azure VMs: use Azure DNS
On the VM, ipconfig /all should show 168.63.129.16, the address Azure VMs use for Azure DNS, as the first DNS server. If it is not first or the list is empty, check the virtual network under Virtual network, DNS servers in the Azure portal. The selected option should be Default (Azure-provided). Also check the network interface, because a custom DNS server can be set there. Change to Default (Azure-provided), restart the VM, run ipconfig /flushdns and then slmgr.vbs /ato again.
5. Azure VMs with custom DNS
If the VM must keep custom DNS servers, Microsoft says to verify that each DNS server address is correct, and to set the servers at the network interface or virtual network level, not on the VM itself. Then run the PsPing test from step 2. If the failure persists, Microsoft refers to its general DNS and activation troubleshooting articles.
If nothing works
Work through Microsoft's DNS troubleshooting guidance and its article on troubleshooting Windows activation error codes. For Azure VMs, Microsoft also provides troubleshooting tools for Windows activation issues. As a general step, collect the exact error text, whether the machine is physical, on-premises virtual or in Azure, and the output of ipconfig /all before contacting your network team or Microsoft support.
What we checked
One Microsoft Learn article was read on 2026-11-22: Error 0x8007232A "DNS server failure" when you activate Windows. It gives the message, the cause, the six scenarios, the guidance for physical computers, and four Azure methods including the slmgr commands and the Azure DNS address. The error was not reproduced for this page. No step here goes beyond that article except the closing advice under "If nothing works", which is a general step.
Last checked: 2026-11-22.