← All Kali Issues
Nmap

Cannot resolve hostname

D DNS High

🔴 Error Message

Failed to resolve hostname/IP address

📖 What This Means

DNS resolution failed for the target.

🔧 Step-by-Step Fix

  1. Check DNS: nslookup target
  2. Try IP directly
  3. Check /etc/resolv.conf
  4. Use: nmap --dns-servers 8.8.8.8 target