Windows activation

Windows activation error 0x8007232A: DNS server failure (KMS)

Error 0x8007232A means Windows could not reach a DNS server to find its KMS host during activation. Steps for physical PCs and Azure VMs, from Microsoft.

By EpiFive Editorial TeamSources checked How we check our guides

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 /all

Confirm 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>:53

If 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 /ato

3. 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 /ato

If 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.

Official sources

Questions people ask

What does 0x8007232A mean?

Microsoft says the Windows KMS client could not contact a DNS server to resolve the Key Management Services (KMS) host address. The DNS query itself failed because the server was unreachable or not responding.

How is 0x8007232A different from 0x8007232B?

Microsoft explains that 0x8007232B means the DNS name does not exist, while 0x8007232A means the DNS query itself failed because the DNS server is unreachable or not responding.

Can I activate an Azure VM without fixing DNS?

Yes. Microsoft documents pointing the VM straight at the Azure KMS service with slmgr.vbs /skms and then running /ato, using 20.118.99.224:1688 or, if that fails, 40.83.235.53.

  • 0x8007232B (Windows activation)

    Error 0x8007232B means a KMS client could not find the KMS host records in DNS. Fixes for home PCs with the wrong key and for admins troubleshooting KMS DNS.

  • 0xC004F074 (Windows activation)

    Error 0xC004F074 means Windows could not reach a Key Management Service (KMS) host to activate. See the fixes for home PCs and for IT admins running KMS.

  • 0x803F7001 (Windows activation)

    Error 0x803F7001 means Windows could not find a valid license for this PC, often after a hardware change or reinstall. Here is how to reactivate it safely.

  • 0xC004C003 (Windows activation)

    Error 0xC004C003 means the activation server rejected the product key as not valid or blocked, often because it was used on several devices. What to do next.

Not your code?

Search the error code library, or report a code we don't cover. Spotted something out of date on this page? Report a correction.