If sync works with the NTP server’s IP address but fails with its hostname, start with DNS resolution. That pattern usually indicates name resolution is failing rather than NTP itself.
Use this sequence:
- Verify the hostname resolves correctly.
- Check that the NTP server name is spelled correctly in the configured
NtpServervalue. - Confirm DNS can resolve the hostname to the expected IP address.
- If name resolution fails, the problem is DNS, not Windows Time.
- Check that the NTP server name is spelled correctly in the configured
- Confirm the Windows Time configuration.
- Review the configured peer in the
NtpServerregistry entry. - For manual peers, ensure the server name or IP is valid.
- If synchronizing with a non-Windows NTP server, configure Windows Time to use client mode instead of symmetric active mode:
w32tm /config /manualpeerlist:<NTP_server_IP_Address>,0x8 /syncfromflags:MANUAL net stop w32time net start w32time w32tm /resync - The
0x8flag sets client mode. This is important because some non-Windows NTP servers respond only to client mode requests. - If
SpecialPollIntervalis being used through the0x1flag, avoid that for this scenario; use0x8without0x1.
- Review the configured peer in the
- Check for the specific Windows Time error pattern.
- If
w32tm /resyncreturns “The computer did not resync because no time data was available”, the documented causes include:- DNS/name resolution failure
- UDP port 123 blocked
- The target server not advertising as an NTP server
- An event such as DNS resolution error on a manual peer also points to hostname resolution as the issue.
- If
- Test network connectivity for NTP.
- Collect a network trace while running:
w32tm /resync /rediscover - Interpret the result:
- No outbound UDP 123 packets: likely blocked on local Windows Firewall.
- Outbound UDP 123 packets with no reply: likely blocked on a network or non-Microsoft firewall.
- Replies are present but sync still fails: investigate whether the target is properly serving NTP.
- Collect a network trace while running:
- If the target is a domain controller, verify it is advertising correctly.
- Use
w32tm /monitorto check whether domain controllers are receiving time from their source. - Run:
dcdiag /test:Advertising - Verify these registry settings under
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\W32Time:- On all DCs:
TimeProviders\NtpServer→Enabled=1 - On the PDC:
Config→AnnounceFlags=5 - On member DCs:
Config→AnnounceFlags=10
- On all DCs:
- Use
- Use the result pattern to isolate the cause.
- Works by IP, fails by hostname: DNS resolution issue is the primary suspect.
- Fails by both IP and hostname, with no UDP 123 traffic: local firewall issue.
- Fails by both IP and hostname, with outbound UDP 123 but no response: upstream firewall or network path issue.
- Resolves name and reaches server, but still no sync: Windows Time mode/configuration or the target NTP server behavior.
Caution: changing registry values or time source settings can affect domain authentication and time hierarchy behavior. Apply configuration changes carefully, especially on domain controllers.
- "w32tm /resync" fails with "The computer didn't resync because no time data was available."
- "w32tm /resync" fails with "The computer didn't resync because no time data was available."
- "w32tm /resync" fails with "The computer didn't resync because no time data was available."
- How to configure an authoritative time server in Windows Server
- Time synchronization may not succeed when you try to synchronize with a non-Windows NTP server
- When SpecialPollInterval is used as a polling interval, the Windows Time service does not correct the time if the service gets into Spike state
- Windows Time service tools and settings