• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar
  • Skip to footer navigation

The Geek Diary

  • OS
    • Linux
    • CentOS/RHEL
    • VCS
  • Interview Questions
  • Database
    • MariaDB
  • DevOps
    • Docker
    • Shell Scripting
  • Big Data
    • Hadoop
    • Cloudera
    • Hortonworks HDP

dnsmap Command Examples in Linux

by Deepika

dnsmap is a command-line tool for Linux and Unix systems that is used to perform reconnaissance on a target domain. It can be used to map the IP addresses of a domain’s DNS servers, as well as to discover subdomains and hostnames associated with a domain. dnsmap can be useful for penetration testing, security assessments, and reconnaissance of an organization’s network infrastructure. It can be run on the command line and provide the output in the form of list of subdomains and IP addresses.

dnsmap Command Examples

1. Scan for subdomains using the internal wordlist:

# dnsmap example.com

2. Specify a list of subdomains to check for:

# dnsmap example.com -w path/to/wordlist.txt

3. Store results to a CSV file:

# dnsmap example.com -c path/to/file.csv

4. Ignore 2 IPs that are false positives (up to 5 possible):

# dnsmap example.com -i 123.45.67.89,98.76.54.32

Filed Under: Linux

Some more articles you might also be interested in …

  1. ipcs Command Examples
  2. YUM command examples to install, remove and upgrade packages
  3. mount Command Examples in Linux
  4. mh_metric Command Examples
  5. gnomon Command Examples
  6. “aws secretsmanager” Command Examples
  7. btrfs balance Command Examples in Linux
  8. “git mergetool” Command Examples
  9. dir: command not found
  10. Getting info with the vsish command (esxi only)

You May Also Like

Primary Sidebar

Recent Posts

  • Vanilla OS 2 Released: A New Era for Linux Enthusiasts
  • mk Command Examples
  • mixxx Command Examples
  • mix Command Examples

© 2025 · The Geek Diary

  • Archives
  • Contact Us
  • Copyright