Home Hacking Tools Review of dnsx – a multi-purpose DNS toolkit

Review of dnsx – a multi-purpose DNS toolkit

by Yash Anand

Dnsx is a fast and multi-purpose DNS toolkit that allows you to run multiple probers using the “retryabledns” library, which allows you to perform multiple DNS queries of your choice with a list of user-supplied resolvers.

Other than resolving domains, it has few notable flags like resp and resp-only that allow you to control and print extracted information.

Dnsx Installation

Installing from Binary is the easiest way to install, download the pre-built binaries from the releases page. Download the binary which is compatible with your system. Extract them using tar and move the binary to your $PATH.

tar -xvf dnsx-linux-amd64.tar
mv dnsx-linux-amd64 /usr/local/bin/dnsx
dnsx -h

The next two methods, require the latest go version install in your system. You can check the install version by using the command “go version“ if go is not installed you can follow this link to install the go.

Installing from Source

GO111MODULE=on go get -v github.com/projectdiscovery/dnsx/cmd/dnsx

Installing from Github

git clone https://github.com/projectdiscovery/dnsx.git 
cd dnsx/cmd/dnsx
go build
mv dnsx /usr/local/bin/
dnsx -version

How DNSX Works

dnsx can be used to filter old records from the list of subdomains obtained from various sources.

dnsx -l domains.txt -o resolved.txt

Wildcard filtering

dnsx has the ability to handle multi-level DNS-based wildcards and do so with fewer DNS requests. Sometimes all the subdomains will resolve which will lead to lots of garbage in the results. The way dnsx handles this is it will keep track of how many subdomains point to an IP and if the count of the Subdomains increases beyond a certain threshold, it will check for wildcards on all hosts for that IP iteratively.

dnsx -l hackerone-subs.txt -wd hackerone.com -o output.txt
  • -l:- file contains unresolved domains/subdomains.
  • -wd:-  Wildcard domain name for filtering.
  • -o:-  File to write the output.
dnsx -silent -retry 3 -t 5 -l domains.txt -wd domain_name -o resolved.txt
  • -silent:- Show only results in the output.
  • -retry:- Number of DNS retries.
  • -t:- Concurrent threads to make.

What Bunny rating does it get?

The tools has some unique features which are not provided by the similar tools, we will be awarding this tool a rating of 4.5 out of 5 bunnies.

Want to learn more about ethical hacking?

We have a  networking hacking course that is of a similar level to OSCP, get an exclusive 95% discount HERE

Do you know of another GitHub related hacking tool?

Get in touch with us via the contact form if you would like us to look at any other GitHub ethical hacking tools.

You may also like

Latest Hacking News

Privacy Preference Center

Necessary

The __cfduid cookie is used to identify individual clients behind a shared IP address and apply security settings on a per-client basis.

cookie_notice_accepted and gdpr[allowed_cookies] are used to identify the choices made from the user regarding cookie consent.

For example, if a visitor is in a coffee shop where there may be several infected machines, but the specific visitor's machine is trusted (for example, because they completed a challenge within your Challenge Passage period), the cookie allows Cloudflare to identify that client and not challenge them again. It does not correspond to any user ID in your web application, and does not store any personally identifiable information.

__cfduid, cookie_notice_accepted, gdpr[allowed_cookies]

Advertising

DoubleClick by Google refers to the DoubleClick Digital Marketing platform which is a separate division within Google. This is Google’s most advanced advertising tools set, which includes five interconnected platform components.

DoubleClick Campaign Manager: the ad-serving platform, called an Ad Server, that delivers ads to your customers and measures all online advertising, even across screens and channels.

DoubleClick Bid Manager – the programmatic bidding platform for bidding on high-quality ad inventory from more than 47 ad marketplaces including Google Display Network.

DoubleClick Ad Exchange: the world’s largest ad marketplace for purchasing display, video, mobile, Search and even Facebook inventory.

DoubleClick Search: is more powerful than AdWords and used for purchasing search ads across Google, Yahoo, and Bing.

DoubleClick Creative Solutions: for designing, delivering and measuring rich media (video) ads, interactive and expandable ads.

doubleclick

Analytics

The _ga is asssociated with Google Universal Analytics - which is a significant update to Google's more commonly used analytics service. This cookie is used to distinguish unique users by assigning a randomly generated number as a client identifier. It is included in each page request in a site and used to calculate visitor, session and campaign data for the sites analytics reports. By default it is set to expire after 2 years, although this is customisable by website owners.

The _gat global object is used to create and retrieve tracker objects, from which all other methods are invoked. Therefore the methods in this list should be run only off a tracker object created using the _gat global variable. All other methods should be called using the _gaq global object for asynchronous tracking.

_gid works as a user navigates between web pages, they can use the gtag.js tagging library to record information about the page the user has seen (for example, the page's URL) in Google Analytics. The gtag.js tagging library uses HTTP Cookies to "remember" the user's previous interactions with the web pages.

_ga, _gat, _gid