dnsx icon indicating copy to clipboard operation
dnsx copied to clipboard

localhost is not resolved correctly with -hc on windows

Open Mzack9999 opened this issue 2 years ago • 1 comments

dnsx version:

dev on windows

Current Behavior:

when using hosts file localhost is not resolved

Expected Behavior:

localhost resolving to the ips configured in the host file (usually 127.0.0.1 or ::1)

Steps To Reproduce:

echo localhost | go run . -json -verbose -a

      _             __  __
   __| | _ __   ___ \ \/ /
  / _' || '_ \ / __| \  /
 | (_| || | | |\__ \ /  \
  \__,_||_| |_||___//_/\_\ v1.1.1-dev

                projectdiscovery.io

Use with caution. You are responsible for your actions
Developers assume no liability and are not responsible for any misuse or damage.

Mzack9999 avatar Jul 15 '22 16:07 Mzack9999

Fixed in https://github.com/projectdiscovery/retryabledns/pull/66

Mzack9999 avatar Jul 29 '22 11:07 Mzack9999