DNS reconnaissance is a foundational step in target enumeration, using domain and IP address relationships to map an organization's infrastructure and identify potential attack surfaces. Tools like DNSdumpster, WHOIS, nslookup, and dig make it possible to extract significant intelligence with minimal effort.
DNS Reconnaissance
One of the first things that we want to enumerate with a target is going to be the domains that they own. So when we're targeting an organization, let's do some DNS reconnaissance to find out what domains they own.
DNS is domain name system. What essentially happens is that all of the traffic that we have routed on the internet gets routed through IP addresses. This is an example of an IP address. It's a private IP address, not a public one, but it's 192.168.5. That is an address that we would make a request to and say, "Hey, we want a website, we want a web page," or we want some sort of service — whatever the service is, it doesn't have to be web pages.
So what's happening is we're doing a request for a certain domain, and in this case right here, technj.com, and then for a specific host. So maybe it's the www host on the technj.com domain. That makes that request and then it gets translated to this IP address, so we can make the request to that website and say, hey, we want to see your web page.
Essentially, when we are targeting a business or an organization, they're going to have a domain that they probably have purchased. This is what they're driving traffic to. This is what their customers are visiting. This is how we can find out more information about the company if we're interested in their services.
But since that domain is tied to an IP address, and that IP address is tied to a service or a server, now we've got equipment. So by targeting a company, we can easily find out what equipment is on the other side and what they're hosting by just doing a simple little research on this. And when we figure out what equipment it is, then we can start researching and figuring out what the vulnerabilities are of that equipment on the other side. In this case right here, it has a break in — maybe it's the firewall, or in this case it's a gate, or whatever the case may be. We can start researching vulnerabilities for that. That's what we can leverage. That's how we can get access to company resources. So that's what we're looking for.
So what are we doing during this discovery, or enumeration, or reconnaissance part of this? First of all, we need to discover what domains a company owns.
For each one of those domains, they could have many different resources. Here's an MX record. Here's an A record. Here's a host on that. Here's another, some sort of service that they're hosting through it. So we can find out a lot of records per each one of these domains.
For each one of these there could even be multiple records. In this case right here, maybe they're doing some sort of load balancing, so they've got 192.168.5.6 and 7 for load balancing purposes for their streaming services. Each one of these probably has some sort of different server or resources behind it that are hosting this. So any one of those could be our way to get into the company.
There are times when you can use reverse DNS as well. Reverse DNS is just the opposite — you take an IP address and you translate it to a domain. So maybe this is the information that we have, and then we do this reverse DNS to find out even more resources, or maybe it's other domains or other things that are tied to the same IP address.
DNS is a great start, which provides us a huge amount of value with very little effort.
Here's where the real problem comes in to the target: there's this balance between security and availability. They want their services to be available to the outside world. They want certain information to be available to the outside world. But because they're making this available to the outside world, it's also available to an attacker. So we can leverage this now to reduce the amount of security that this company really has, because they've made this available to us. This is a balance that we as security professionals are trying to balance, between availability and security.
Some examples of DNS tools would be DNSdumpster, whois, nslookup and dig. Those are just a few DNS tools that we could use for this reconnaissance.
TechKnowSurge builds IT and cybersecurity professionals through hands-on, concept-first training built around real understanding — not memorization. Free interactive tools, structured programs, and 25+ years of real-world experience, all in one place.
Explore free tools and programs →