1

I know that the Windows hosts file maps host names to IP addresses. But there is no mapping for localhost. Instead it has a comment that says this:

# localhost name resolution is handled within DNS itself.
#   127.0.0.1       localhost

I don't understand this. Where is this "DNS" that handles this resolution? Is it a program somewhere in Windows OS? Is it outside of Windows? Does it have a config file? How is this being done?

2

DNS here refers to the Windows operating system DNS resolver, which is part of the network stack.

  • From Microsoft Docs "The resolver is a software component bundled in the Windows 2000 Transmission Control Protocol/Internet Protocol (TCP/IP) stack that communicates with DNS Servers to create and resolve name-resolution queries." So I guess it's a piece of software part of Windows. – Liga Jun 3 '20 at 11:35

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.