- Notifications
You must be signed in to change notification settings - Fork2.5k
Open
Labels
Description
Describe the bug or feature enhancement
When performing reverse DNS lookups, nmap does not return all associated hostnames for a given IP address in a single scan. Instead, it alternates between them across repeated scans of the same IP address. This behaviour can be problematic for users who expect all PTR records to be returned at once.
Steps to Reproduce
- Identify an IP address with multiple PTR records or hostnames.
- Run nmap repeatedly on the same IP with reverse DNS enabled.
nmap -sL <IP_address>
- Observe the output across multiple scans. Only one hostname is returned at a time.
Expected behavior
Enhance nmap’s reverse DNS lookup functionality to retrieve and display all associated hostnames in one scan.
Add an option (e.g., --all-rdns) to list all PTR records for a given IP.
Version info:
- OS:
# lsb_release -aNo LSB modules are available.Distributor ID: UbuntuDescription: Ubuntu 20.04.6 LTSRelease: 20.04Codename: focal
- Output of
nmap --version
:
# nmap --versionNmap version 7.94 ( https://nmap.org )Platform: x86_64-pc-linux-gnu...