Two computer names resolve to the same IP address and file shares fail with a Kerberos error? The old record outlived its DHCP lease. Match the lease to No-refresh + Refresh, or let DHCP register records, and find duplicates in PowerShell.
Home › Guides › Multiple DNS records with the same IP address
Last updated 22 November 2026
Two computer names with the same IP address in DNS usually means a stale record outlived its DHCP lease. Microsoft's example: the lease is the default 8 days, but with default aging (No-refresh 7 days + Refresh 7 days) a client's record can't be scavenged until 14 days after its last refresh. When the scope is low on addresses, the expired address goes to a new client, which registers it too. Because client A owns its record, the DHCP server can't delete it. Fix it by making the lease and the aging intervals match (raise the lease to 14 days, or cut No-refresh and Refresh to 4 days each), or let the DHCP server register records for its clients. Microsoft also recommends a scavenging period of one to three days instead of seven.
| When | DHCP | DNS |
|---|---|---|
| Day 0 | Client A's 8-day lease is renewed | Client A refreshes its A record and is its owner |
| Day 8 | Client A hasn't renewed; the lease expires. Client B asks for an address and gets client A's old one (the scope is low on addresses) | Client B registers its name with that address. Client A's record is still there, not yet stale |
| Days 8 to 14 | Normal: nothing is wrong on the DHCP side | Two names resolve to the same address. The DNS server can't scavenge client A's record for another six days |
| Day 14 and later | - | Client A's record becomes stale and goes at the next scavenging run (default every 7 days) |
The scenario uses an AD-integrated zone set to scavenge stale records with default settings (No-refresh interval 7 days, Refresh interval 7 days, Scavenging period 7 days). How aging and scavenging decide when a record is stale is covered in DNS scavenging not working.
Microsoft lists two examples: installation problems with Configuration Manager (SCCM) clients, and an error when you open a share on client A even when client A is turned off. The share failure works like this:
client-a.corp.contoso.com and gets 10.0.0.100. As far as DNS is concerned the answer is correct: both client A and client B have 10.0.0.100.Connecting by IP address instead of the FQDN works, because Windows then negotiates NTLM rather than Kerberos. With the FQDN, Kerberos returns a valid ticket, so there's no fallback to NTLM.
| Resolution | Advantage | Disadvantage |
|---|---|---|
| 1. Raise the DHCP lease to match No-refresh + Refresh (14 days in the example) | The lease lasts until the DNS record is scavenged, so no other client gets and registers the address | A scope already low on addresses can run out |
| 2. Lower No-refresh + Refresh to match the lease (4 + 4 days in the example) | The old record is scavenged sooner, with the same effect as resolution 1 | Clients refresh more often (every 4 days instead of 7), so AD replication traffic rises for AD-integrated zones |
| 3. Let the DHCP server register DNS records for its clients | The DHCP server can remove the record as soon as the lease expires, so duplicates shouldn't exist if it's set up correctly | More setup: a service account set up for the DHCP service, or all DHCP servers in the DnsUpdateProxy group, which is less secure |
With resolutions 1 and 2, small time differences mean a few records may not be scavenged before the lease expires; a one-day scavenging period removes them the next day. Microsoft suggests experimenting with the lease and the intervals: short leases (hours) are sometimes used for wireless subnets, but watch server performance if a DNS server scavenges large zones every few hours. For resolution 3, see DHCP DNS dynamic updates and event 1056.
These DhcpServer and DnsServer module cmdlets set the same values as the consoles (examples use Microsoft's numbers; replace the scope and zone names):
# Resolution 1: 14-day lease on a scope Set-DhcpServerv4Scope -ScopeId 10.0.0.0 -LeaseDuration 14.00:00:00 # Resolution 2: 4-day No-refresh and Refresh intervals on a zone Set-DnsServerZoneAging -Name corp.contoso.com -NoRefreshInterval 4.00:00:00 -RefreshInterval 4.00:00:00 # Either way: scavenge every day instead of every 7 days Set-DnsServerScavenging -ScavengingInterval 1.00:00:00
Run the scavenging change on the one DNS server that scavenges the zone.
Microsoft publishes a sample PowerShell script that loads the Active Directory module, gets every computer with Get-ADComputer -Filter * -Properties IPv4Address, sorts by address, compares the full list with a unique list, and prints the computers whose IPv4 address appears more than once as a Name / IPv4Address table. A shorter equivalent of the same idea:
Import-Module ActiveDirectory
Get-ADComputer -Filter * -Properties IPv4Address |
Where-Object IPv4Address |
Group-Object IPv4Address |
Where-Object Count -gt 1 |
ForEach-Object { $_.Group } |
Format-Table Name, IPv4Address -AutoSizeKeep Microsoft's caveats in mind: IPv4Address isn't stored on the computer account, so each computer costs a DNS lookup; on a large domain, limit each run with -SearchBase; and computers that aren't joined to AD aren't returned at all. For records that vanish instead of piling up, see DNS records missing from a zone.
Look up DNS Server events such as 2501 and 2502 in the Windows Event ID Lookup, copy the DhcpServer and DnsServer lines from the PowerShell Cheat Sheet, pull names and addresses out of the duplicate list with the Regex Tester, check which scope the shared address belongs to with the IPv4 Subnet Calculator or IPv6 Subnet Calculator, and identify the vendor of the device that now holds the address with the MAC Vendor Lookup. Related guides: DNS scavenging not working, DHCP DNS dynamic updates and event 1056, DNS records missing from a zone, KRB_AP_ERR_MODIFIED and duplicate SPNs and common Windows DNS Server and DHCP Server errors.
Every Windows DNS Server and DHCP Server event and symptom in one place: common Windows DNS Server and DHCP Server errors.
With the default 8-day DHCP lease and default 7-day No-refresh and 7-day Refresh intervals, an expired address can go to a new client while the old client record still cannot be scavenged for several more days.
By default the client owns its DNS record, so the DHCP server cannot delete it. Only if the DHCP server registers records on behalf of its clients can it remove them when the lease expires.
By name, the server gets a Kerberos ticket for the old computer but connects to the new one at that address, which rejects it. By IP address Windows uses NTLM, so the ticket mismatch does not happen.
Make the lease match No-refresh plus Refresh, for example a 14-day lease with 7 + 7 days, or 4 + 4 days with an 8-day lease, and scavenge every one to three days instead of every seven.
Get every computer with Get-ADComputer -Filter * -Properties IPv4Address and group by address. It does a DNS lookup per computer, so use -SearchBase on large domains, and it misses computers not joined to AD.
Runbooks, checklists and helpdesk templates: IT Admin Packs on Gumroad.