By default, any signed-in user can create a * record in the domain's DNS zone. That record answers for every name that does not exist. A placeholder record owned by an administrator stops anyone else creating one.
Nobody can hijack names that do not exist in your domain.
By default any user can create a * record that answers for every missing name and collects sign-in attempts.
Add a placeholder * record owned by an administrator, then check it on both domain controllers.
Why it matters
Computers register their own DNS records, so Active Directory lets every signed-in user add new names to the zone. A * record is a new name like any other. If a pupil account creates one that points at their laptop, every mistyped server name and every retired share resolves to that laptop. Windows then tries to sign in to it and hands over password hashes.
The name * can only exist once. If an administrator creates it first, ordinary users cannot change or replace it.
Check nobody has made one already
Get-DnsServerResourceRecord -ZoneName "ad.contoso.com" -Name "*" -ErrorAction SilentlyContinue
Nothing back means the name is free. If a record comes back and you did not create it, note where it points and treat it as a security incident before you delete it.
Add the placeholder
Add-DnsServerResourceRecord -ZoneName "ad.contoso.com" -Name "*" -Txt -DescriptiveText "Placeholder - blocks wildcard record creation"
A TXT record holds only a note. It never points a name at an address, so made-up names still fail to resolve.
Check it works
Use a server's real computer name in the second line. The name of a virtual machine in Hyper-V can differ from its Windows name.
Resolve-DnsName "doesnotexist123.ad.contoso.com" -Type A # made-up name Resolve-DnsName "CON-DC-02.ad.contoso.com" -Type A # real name
| Lookup | What you should see |
|---|---|
| Made-up name | No IP address. An SOA line for the zone on its own is correct. |
| Real name | The server's IP address, as before. |
Check the second domain controller
The record is stored in Active Directory, so it copies to the other DCs by itself. Ask the second DC for the note:
Resolve-DnsName "doesnotexist123.ad.contoso.com" -Type TXT -Server 10.0.20.11
It should return the placeholder text. If it says the name does not exist, wait five minutes and try again. To hurry it along, run this on the second DC:
repadmin /syncall /Ade dnscmd /ZoneUpdateFromDs ad.contoso.com
repadmin /syncall /AdeP pushes changes out from the DC you are on. Here you want the second DC to pull the new record in, so run it without /P.
What changes afterwards
A lookup for a name that does not exist now comes back empty, where before it said the name did not exist. Users see the same failure either way.
Scavenging does not remove the record, because records you add by hand have no timestamp. Leave it alone during DNS tidy-ups.
Remove it
Remove-DnsServerResourceRecord -ZoneName "ad.contoso.com" -Name "*" -RRType Txt -Force
Done when
A made-up name returns no address from either domain controller, a real server name still resolves, and the second DC returns the placeholder text.


