What is DNS Enumeration — Zerosuniverse

Avinash Anshu
Zerosuniverse
Published in
2 min readMar 29, 2022

DNS Enumeration is the process of locating all the DNS servers and their corresponding records for an organization.DNS is like a map or an address book.

In fact, it is like a distributed database that is used to translate an IP address 192.111.1.120 to a name www.zerosuniverse.com and vice versa.

DNS Enumeration is used to gather as many interesting details as possible about your target before initiating an attack.

DNS servers can yield information such as usernames, computer names, and IP addresses of potential target systems.

DNS enumeration is done to find large amounts of information. The DNS system often holds various types of data associated with a domain.

Information gathered by DNS Enumeration can be used by an attacker in various breaches, especially while initiating DNS Tunneling.

DNS Zone Transfer is used to replicate DNS data across a number of DNS servers or to back up DNS files. A user or server will perform a specific zone transfer request from a ―name server.

If the name server allows zone transfers by an anonymous user to occur, all the DNS names and IP addresses hosted by the name server will be returned in human-readable ASCII text.

Tools used for DNS Enumeration

You can use nslookup command available on Linux to get DNS and host-related information. In addition, you can use the following DNSenum script to get detailed information about a domain- DNSenum.plThe dnsenum script can perform the following important operations :

  1. Get the host’s addresses
  2. Get the nameservers
  3. Get the MX record
  4. Perform axfr queries on nameservers
  5. Get extra names and subdomains via Google scraping
  6. Brute force subdomains from a file can also perform recursion on a subdomain that has NS records.
  7. Calculate C class domain network ranges and perform whois queries on them
  8. Perform reverse lookups on entrances

If your DNS is not configured in a secure way, it is possible that lots of sensitive information about the network and organization can go outside and an untrusted Internet user can perform a DNS zone transfer.

Originally published at https://www.zerosuniverse.com on March 29, 2022.

--

--

Avinash Anshu
Zerosuniverse

I am passionate about Cyber Security, AI, programming, and technology, and pretty much anything that’s visually interesting.