Recon hunters, gather around! dnsx is here to make subdomain enumeration faster, smarter, and, let's face it, cooler. But before you flex it on your next bug bounty target, there's one catch: GoLang. If you skipped my blog on installing it(https://medium.com/@hacker_might/mastering-subfinder-for-bug-bounty-ultimate-guide-to-subdomain-enumeration-and-api-configuration-18c36599c8a8), go back and redeem yourself (your terminal will thank you).

For the rest of us, let's jump in and see why dnsx is the DNS tool you didn't know you desperately needed. Ready to turn reconnaissance into your superpower? Let's go!

Step 1: Installing `dnsx` — Because Nothing's Easy Without GoLang

First, install dnsx with:

go install -v github.com/projectdiscovery/dnsx/cmd/dnsx@latest

Then, verify the installation:

dnsx -h

Does it work? Great! If not, welcome to the club of Why doesn't my tool work? Turns out, it's not just you; sometimes the tool downloads but doesn't place itself where it should. (Typical.)

Step 2: Fixing Installation Woes

Navigate to the folder where `dnsx` hides out after installation:

cd ~/go/bin

Check if it's there:

./dnsx -h

If it works, you're halfway there! Now, move it to a global directory so your terminal stops complaining:

sudo cp dnsx /usr/local/bin

Now, you can call it from anywhere like the rockstar you are:

dnsx -h
None

Step 3: Using `dnsx` — Let the Magic Begin

Imagine you've got a file of subdomains (say, `domain.txt` from Subfinder). Run this:

cat domain.txt | dnsx

And *boom*, you've got a list of all the alive domains. No crying, no swearing, just results.

Need More? dnsx Has You Covered: 1. Domains + IP addresses:

cat domain.txt | dnsx -silent -a -resp

2. Only IP addresses:

cat domain.txt | dnsx -silent -a -resp-only

3. CNAMES (because who doesn't love a good DNS alias?):

cat domain.txt | dnsx -silent -cname -resp

4. Reverse DNS on CIDR ranges:

cat domain.txt | dnsx -silent -resp-only -ptr

Why Use `dnsx`?

Because wasting time with manual DNS checks is so 2010. With its speed, versatility, and ease of use, dnsx is the Swiss Army knife of DNS tools. Whether you're hunting bugs or just flexing your recon skills, this tool saves you time and makes you look good while doing it.

Reconnaissance Made Simple

DNS enumeration doesn't have to be a soul-crushing chore. With dnsx, you get alive domains, IPs, CNAMES, and even reverse DNS, all with minimal effort. So, what are you waiting for? Install it, run it, and start impressing your fellow hunters. Oh, and bookmark this blog — your future self will thank you when you forget the commands.

None