Netlogon Event 5807: Clients Whose IP Addresses Do Not Map to Any Site, and How to Fix NO_CLIENT_SITE

Netlogon event 5807 on a domain controller: find the clients in netlogon.log (NO_CLIENT_SITE), create AD subnet objects with New-ADReplicationSubnet -Site, and the KB 2668820 case where unmapped clients slow LDAP and Kerberos.

Home › Guides › Netlogon event 5807

Last updated 23 November 2026

Quick answer

Event 5807 is a Warning from source NETLOGON on a domain controller. It counts the connections the DC received over the last few hours from clients whose IP addresses don't map to any site in the forest. Those clients have no site, so they may connect to any Domain Controller including those that are in far distant locations. The fix is the one the event itself suggests: find the client names and addresses in %SystemRoot%\debug\netlogon.log (lines containing NO_CLIENT_SITE:), then create subnet objects that cover those addresses and associate each one with a site, in Active Directory Sites and Services or with New-ADReplicationSubnet -Name "10.10.0.0/22" -Site Asia. A few unmapped clients mainly risk talking to a distant DC; tens of thousands of them can slow down LDAP and Kerberos on the DC, which Microsoft documents in KB 2668820 (covered below).

The event text

Microsoft's sample from KB 2668820 (Event Type Warning, Event Source NETLOGON, Event ID 5807) reads:

During the past 4.23 hours, there have been 123450 connections to this Domain Controller from client machines whose IP addresses don't map to any of the existing sites in the enterprise. Those clients, therefore, have undefined sites and may connect to any Domain Controller including those that are in far distant locations from the clients. A client's site is determined by the mapping of its subnet to one of the existing sites. To move the above clients to one of the sites, consider creating subnet object(s) covering the above IP addresses with mapping to one of the existing sites. The names and IP addresses of the clients in question have been logged on this computer in the following log file '%SystemRoot%\debug\netlogon.log' and, potentially, in the log file '%SystemRoot%\debug\netlogon.bak' created if the former log becomes full.

The rest of the text says the logs may contain unrelated debugging information, that you should search for lines containing NO_CLIENT_SITE:, that the first word after this string is the client name and the second word is the client IP address, and that the log size is controlled by a registry DWORD (see the log size section below). The hours and the connection count change each time; your event will show your own numbers.

Causes and fixes at a glance

What you seeLikely causeFix
5807 with a few clients from a new office, VLAN or VPN poolNo subnet object covers that address rangeCreate a subnet object for the range and associate it with the nearest site
The subnet exists in Sites and Services but its clients still show up as NO_CLIENT_SITEThe subnet object has no site (my reading: a subnet with no site can't map a client to one), or its prefix doesn't cover the client's addressSet-ADReplicationSubnet -Site, or create a subnet with the right prefix
Thousands of connections, plus logon delays, Outlook hangs and a growing Exchange queueKB 2668820: site-unmapped LDAP pings tie up the DC's ATQ thread pool, typically in a resource forest that has no subnets for the client forest's IP segmentsCreate matching subnets and sites in that forest; Microsoft also lists update 2922852, MaxPoolThreads and name resolution changes
The NO_CLIENT_SITE lines you need are gonenetlogon.log reached its maximum size and was renamed to netlogon.bakCheck netlogon.bak too, or raise the maximum log size

Step 1: find the clients in netlogon.log

On the DC that logged 5807, open %SystemRoot%\debug\netlogon.log (and netlogon.bak if it exists) and look for lines that contain NO_CLIENT_SITE:. Per the event text, the first word after that string is the client name and the second is its IP address. To pull just those lines out, this command is my suggestion (it isn't in Microsoft's article):

findstr /C:"NO_CLIENT_SITE:" %SystemRoot%\debug\netlogon.log

And to list each address once in PowerShell, also my suggestion, built only on the line format the event describes:

Select-String -Path "$env:SystemRoot\debug\netlogon.log" -Pattern "NO_CLIENT_SITE: (\S+) (\S+)" | ForEach-Object { $_.Matches[0].Groups[2].Value } | Sort-Object -Unique

The event says the DC has already logged these clients. Whether NO_CLIENT_SITE lines depend on Netlogon debug logging is not covered in Microsoft's articles. If the file has no such lines, Microsoft's Netlogon debug logging article turns verbose logging on with Nltest /DBFlag:2080FFFF and off again with Nltest /DBFlag:0x0; on Windows Server 2012 R2 and later a Netlogon restart is typically unnecessary. Turning it on for this purpose is my suggestion, and remember to turn it off afterwards.

Step 2: work out the subnets and the right site

Group the addresses into the real network ranges they belong to. Subnet names in Active Directory take the form network/bits masked: Microsoft's example is 172.16.72.0/22, a subnet of 172.16.72.0 with a 22-bit mask, and its site design article shows 172.16.4.0 with mask 255.255.252.0 written as 172.16.4.0/22. IPv6 prefixes such as 3FFE:FFFF:0:C000::/64 are supported too. Microsoft's site design guidance for choosing the site:

Step 3: create the subnet objects

In the console (steps from Microsoft's Create a Subnet Object procedure): open Active Directory Sites and Services, expand Sites, right-click Subnets and choose New Subnet. In Prefix, type the IPv4 or IPv6 prefix; under Select a site object for this prefix, pick the site and click OK. That procedure needs Enterprise Admins, or Domain Admins in the forest root domain, or equivalent.

In PowerShell, Microsoft's New-ADReplicationSubnet example creates a subnet, associates it with the Asia site and sets its location:

New-ADReplicationSubnet -Name "10.10.0.0/22" -Site Asia -Location "Tokyo,Japan"

-Site is optional. Microsoft's first example, New-ADReplicationSubnet -Name "10.0.0.0/25", creates a subnet with no site at all, so include -Site when you are fixing 5807. If the site doesn't exist yet, list the sites first and create one if needed:

Get-ADReplicationSite -Filter *
New-ADReplicationSite -Name "NorthAmerica"

For a subnet that already exists but has no site or the wrong one, Microsoft's Set-ADReplicationSubnet examples are:

Set-ADReplicationSubnet -Identity "10.0.0.12/22" -Site Asia -Location "Tokyo,Japan"
Get-ADReplicationSubnet -Filter "Location -like '*Japan'" -Properties Site | % {Set-ADReplicationSubnet $_ -Site Asia}

One quirk: 10.0.0.12 isn't the network address of a /22 (that would be 10.0.0.0/22). Since subnet names take the form network/bits masked, my suggestion is to name subnets by their network address and use whatever name the object actually has as the -Identity.

Step 4: check the result

Get-ADReplicationSubnet -Filter *
Get-ADReplicationSubnet -Identity "10.0.0.0/25" -Properties *

Both commands are Microsoft's examples; check that each new subnet shows the site you expect. On an affected client, nltest /dsgetsite shows the site name; Microsoft's nltest reference describes it as returning the site the domain controller resides in, so running it on a client to see which site that client gets is my suggestion. The subnet object has to replicate to the DC that logged the event before that DC can map the client (my note; replication timing isn't covered in the articles above). Then watch for the next 5807: Microsoft's sample covers about 4.2 hours, but how often the event repeats is not covered in Microsoft's articles, and new NO_CLIENT_SITE lines show which ranges are still missing.

When 5807 comes with slow logons (KB 2668820)

Microsoft's article on DCs that respond slowly to LDAP or Kerberos requests lists logon delays, Outlook and other application hangs and an increasing Exchange queue as symptoms, with a 5807 showing a high number of clients on the slow DC as the more obvious indicator. The cause it gives:

Microsoft's resolution: update 2922852 allows turning off this DNS lookup (its details are in a separate KB and not covered here). Workarounds it lists: create matching subnets and sites so 5807 doesn't show a high number of unmapped connections; increase MaxPoolThreads to 10 (counted per core) with the Ntdsutil LDAP policy procedure in KB 315071; and optimize the DC's name resolution, disabling NetBIOS or using P-node when WINS is required. In a resource forest that means creating subnets for the client forest's address ranges in the resource forest too.

netlogon.log size and netlogon.bak

Microsoft's Netlogon debug logging article says the default maximum size of Netlogon.log is 20 MB; when it reaches that, it is renamed to Netlogon.bak and a new Netlogon.log is started, so the disk space used is twice the maximum (a 50 MB setting can need 100 MB). The size is set with a REG_DWORD in bytes under HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Netlogon\Parameters, which doesn't exist by default. The two articles name it differently: the 5807 event text says LogFileMaxSize (default 20000000 bytes), while the debug logging article says MaximumLogFileSize. Which name a given Windows version reads is not covered in Microsoft's articles. Using the name from the current debug logging article is my suggestion, and the 50 MB value below is my example:

reg add "HKLM\SYSTEM\CurrentControlSet\Services\Netlogon\Parameters" /v MaximumLogFileSize /t REG_DWORD /d 52428800 /f

Troubleshooting checklist

Related tools and guides

Look up Netlogon events such as 5807, 5719 and 5774 in the Windows Event ID Lookup, copy the New-ADReplicationSubnet and Get-ADReplicationSubnet lines from the PowerShell Cheat Sheet, pull client names and addresses out of NO_CLIENT_SITE lines with the Regex Tester, turn client addresses into subnet prefixes with the IPv4 Subnet Calculator or IPv6 Subnet Calculator, and identify an unknown client from its MAC address with the MAC Vendor Lookup. Related guides: Netlogon event 5719, KCC event 1865 (sites cannot be reached), domain join error 0x54B and common AD replication errors.

DC logging Netlogon 5722 about a computer that failed to authenticate? See Netlogon event 5722.

Every AD replication error code with its cause and fix: common Active Directory replication errors.

FAQ

What does Netlogon event 5807 mean?

A domain controller received connections from clients whose IP addresses do not map to any site in the forest, so those clients have no site and may connect to any DC, including distant ones. The event counts those connections over the last few hours and points you to netlogon.log for the client names and addresses.

Where do I find the clients listed in event 5807?

In %SystemRoot%\debug\netlogon.log on the DC that logged the event, and in netlogon.bak if the log filled up and rolled over. Search for lines containing NO_CLIENT_SITE: and read the next two words, the client name and the client IP address.

How do I fix event 5807?

Create subnet objects that cover the client addresses and associate each with a site, either in Active Directory Sites and Services (Subnets, New Subnet, Prefix, select the site) or with New-ADReplicationSubnet -Name plus the prefix and -Site plus the site name. For an existing subnet without a site, use Set-ADReplicationSubnet -Site.

Is Netlogon event 5807 safe to ignore?

Clients without a site may use a far-away domain controller. With a very high number of unmapped clients, Microsoft documents slow LDAP and Kerberos responses, logon delays and Outlook hangs (KB 2668820), so it is worth creating the missing subnets.

Why does netlogon.log not show all the NO_CLIENT_SITE clients?

The log has a maximum size, 20 MB by default. When it is reached the file is renamed to netlogon.bak and a new netlogon.log starts, so check both files or raise the maximum size in the Netlogon Parameters registry key.

Want the full kit?

Runbooks, checklists and helpdesk templates: IT Admin Packs on Gumroad.