Skip to content
AdminKit

LLMNR (Link-Local Multicast Name Resolution)

What is LLMNR (Link-Local Multicast Name Resolution)?

LLMNR (Link-Local Multicast Name Resolution), described in RFC 4795, lets hosts on the same local link resolve each other's names by multicasting a DNS-format query when ordinary DNS gives no answer. AdminKit explains how LLMNR works and why any host on the link can poison its replies to capture Windows credentials.

By AdminKit team, Netbase JSC · Updated

LLMNR is a fallback name resolution protocol: when a Windows machine cannot resolve a name through DNS, for example because someone mistyped a file server name, it asks every host on the local link whether they own that name. RFC 4795, published in January 2007 as an Informational RFC, describes the protocol, and Microsoft documents how Windows implementation differs from the RFC in its MS-LLMNRP protocol profile.

How does LLMNR work?

LLMNR reuses the DNS message format but sends the query to a link-scope multicast group instead of a configured recursive resolver. Per RFC 4795, queries go to port 5355, which the IANA port registry lists as llmnr for TCP and UDP, at these addresses:

IPv4:  224.0.0.252
IPv6:  FF02:0:0:0:0:0:1:3
Port:  5355 (IANA service name: llmnr)

Any host that owns the name replies directly to the sender. Because the query never leaves the local link, LLMNR works without a DNS server at all, much like mDNS does for .local names on Apple and smart-home devices.

Why is LLMNR a poisoning target?

The design trusts whoever answers. RFC 4795’s own security section notes that multicast queries reach every host on the link, “making it possible for an on-link attacker to spoof LLMNR responses without having to guess the value of the ID field in the query”, and that a query for a name with no legitimate owner is easy to win because “a legitimate response will never be received”.

MITRE ATT&CK technique T1557.001 describes the real-world abuse: an adversary on the network answers LLMNR (UDP 5355) and NetBIOS Name Service (UDP 137) queries, the victim connects to the adversary’s system, and if that resource asks for authentication the username and NTLMv2 hash are sent along, ready to crack offline or relay to another server. MITRE lists Responder and Inveigh among the tools used for this.

Mitigations MITRE lists:

  • Disable LLMNR, mDNS and NetBIOS by local security settings or group policy where they are not needed.
  • Block LLMNR, NetBIOS and mDNS traffic with host-based security software.
  • Enable SMB signing, which stops NTLMv2 relay attacks against SMB.

LLMNR is local-network traffic, and UDP 5355 is not something AdminKit’s port check tests: that tool probes a fixed list of nine TCP ports on your own public IP and no UDP ports.

AdminKit groups LLMNR under its DNS cluster — browse the AdminKit glossary index for other related terms.

Frequently asked questions

Which port and addresses does LLMNR use?

RFC 4795 sends LLMNR queries to port 5355, at the IPv4 link-scope multicast address 224.0.0.252 or the IPv6 address FF02:0:0:0:0:0:1:3. IANA registers port 5355 as llmnr for both TCP and UDP.

Why is LLMNR a security risk?

A query goes to every host on the link and the first reply wins, so an attacker on the same network can answer for a name that does not exist in DNS. MITRE ATT&CK describes how victims then send their username and NTLMv2 hash to the attacker's system, where it can be cracked or relayed.

Should I disable LLMNR?

Where nothing depends on it, yes. MITRE ATT&CK lists disabling LLMNR, mDNS and NetBIOS by local security settings or group policy as a mitigation, and enabling SMB signing to stop NTLMv2 relay.

Is LLMNR the same as mDNS?

No. Both use DNS-format messages over multicast on the local link, but mDNS (RFC 6762) uses port 5353 and the .local domain, while RFC 4795 has an LLMNR sender, on port 5355, query by default only for single-label names such as a bare host name.