projectdiscovery / naabu

A fast port scanner written in go with a focus on reliability and simplicity. Designed to be used in combination with other tools for attack surface discovery in bug bounties and pentests
https://projectdiscovery.io
MIT License
4.69k stars 547 forks source link

Request, timeout & no valid ipv4 or ipv6 targets were found #1041

Closed Ownyy closed 5 months ago

Ownyy commented 5 months ago

Hi ! I recently take current naabu version & install it with : go install -v github.com/projectdiscovery/naabu/v2/cmd/naabu@latest but when I try to put a request : naabu I don't understand why naabu tell me this,

Thanks in advance

Pumpkinmooner commented 5 months ago

I am faced with the same problem with you!

dogancanbakir commented 5 months ago

The Could not get IP for host: hackerone.com and the error read udp 192.168.1.107:53940->8.8.4.4:53: 1/0 timeout is a DNS resolution issue. Can you retry with different resolver using -r string list of custom resolver dns resolution (comma separated or from file). These are the default ones we're using https://github.com/projectdiscovery/dnsx/blob/ff52c405963c0c4b6b39738e37dcbe4e3eb152a9/libs/dnsx/dnsx.go#L80

dogancanbakir commented 5 months ago

By the way, I couldn't reproduce this issue.

Ownyy commented 5 months ago

Thanks for your response ! I've already tried all that, and unfortunately nothing seems to be working. After some research, I realized that it might potentially be due to my location. I live in Morocco, and there, IPv6 is not widespread, if not nonexistent. On 198.168.1.1, it says 'unknown' for IPv6 and 'unknown' for Primary and Secondary DNS. What's strange is that a friend using a VPS that doesn't have IPv6 is still able to use Naabu. image_2024-04-29_115905596

dogancanbakir commented 5 months ago

Thanks for the feedback. I don't think the IP version is the issue; I also have mine saying "connect: no route to host" for v6. This may be a DNS-related issue. I'll close this for now. Feel free to reopen if the issue persists.