8

I wish to perform a LLMNR query explicitly. My current environment includes DNS servers so the ping (ping -a specifically) is doing DNS queries to resolve the name. I can disable my DNS in my network configuration, but that isn't an ideal solution.

How do I perform a LLMNR query?

DarkSheep
  • 1,036
  • 1
  • 13
  • 23

2 Answers2

9

Assuming PowerShell is available, use Resolve-DnsName -LlmnrOnly -Name <host>

From the linked TechNet page:

-LlmnrOnly
Resolves this query using only the LLMNR protocol.

jscott
  • 24,484
  • 8
  • 79
  • 100
1

Can you remove the appended DNS Suffix from your local config?

  • Go to your ethernet connection.
  • Click Properties.
  • Double click Internet Protocol Version 4(TCP/IPv4)
  • Click Advanced.
  • Click the DNS tab. Remove whatever the suffix is.
HashHazard
  • 156
  • 4