Giter VIP home page Giter VIP logo

dnsprobe's Introduction

Note - This project is discontinued. New updates and fixes will be pushed to dnsx.

dnsprobe

License Go Report Card contributions welcome

DNSProbe is a tool built on top of retryabledns that allows you to perform multiple dns queries of your choice with a list of user supplied resolvers.

Resources

Features

dnsprobe

  • Simple and Handy utility to query DNS records.

Usage

dnsprobe -h

This will display help for the tool. Here are all the switches it supports.

Flag Description Example
-c Max dns retries (default 1) dnsprobe -c 5
-l List of dns domains (optional) dnsprobe -l domains.txt
-r Request Type A, NS, CNAME, SOA, PTR, MX, TXT, AAAA (default "A") dnsprobe -r A
-s List of resolvers (optional) dnsprobe -s resolvers.txt
-t Number of concurrent requests to make (default 250) dnsprobe -t 500
-f Output type: ip, domain, response, simple (domain + ip, default), full (domain + response), json (domain + raw response) dnsprobe -f json
-o Output file (optional) dnsprobe -o result.txt
-raw Output the full response ignoring output type dnsprobe -raw
-silent Show only found results in output dnsprobe -silent

Installation Instructions

From Source

dnsprobe requires go1.13+ to install successfully. Run the following command to get the repo -

GO111MODULE=on go get -u -v github.com/projectdiscovery/dnsprobe

In order to update the tool, you can use -u flag with go get command.

Running in a Docker Container

  • Clone the repo using git clone https://github.com/projectdiscovery/dnsprobe.git
  • Build your docker container
> docker build -t projectdiscovery/dnsprobe .
  • After building the container using either way, run the following -
> docker run -it projectdiscovery/dnsprobe

For example, to query a list of domains for CNAME record and output the results to your host file system:

> cat domains.txt | docker run -i projectdiscovery/dnsprobe -r CNAME > bugcrowd.txt

Querying host for A record

To query a list of domains, you can pass the list via stdin (it also accepts full URLS, in this case the domain is extracted automatically).

> cat domains.txt | dnsprobe

root@test:~# cat bc.txt | dnsprobe
bounce.bugcrowd.com 192.28.152.174
blog.bugcrowd.com 104.20.4.239
blog.bugcrowd.com 104.20.5.239
www.bugcrowd.com 104.20.5.239
www.bugcrowd.com 104.20.4.239
events.bugcrowd.com 54.84.134.174

Querying host for CNAME record

> dnsprobe -l domains.txt -r CNAME

root@test:~# dnsprobe -l bc.txt -r CNAME
forum.bugcrowd.com bugcrowd.hosted-by-discourse.com.
collateral.bugcrowd.com bugcrowd.outrch.com.
go.bugcrowd.com mkto-ab270028.com.
ww2.bugcrowd.com bugcrowdinc.mktoweb.com.
researcherdocs.bugcrowd.com ssl.readmessl.com.
docs.bugcrowd.com ssl.readmessl.com.

This will run the tool against domains in domains.txt and returns the results. The tool uses the resolvers specified with -s option to perform the queries or default system resolvers.

Querying CNAME records on the Subfinder output

> subfinder -d bugcrowd.com -silent | dnsprobe -r cname

root@b0x:~# subfinder -d bugcrowd.com -silent | dnsprobe -r cname
forum.bugcrowd.com bugcrowd.hosted-by-discourse.com.
docs.bugcrowd.com ssl.readmessl.com.
go.bugcrowd.com mkto-ab270028.com.
ww2.bugcrowd.com bugcrowdinc.mktoweb.com.
researcherdocs.bugcrowd.com ssl.readmessl.com.
collateral.bugcrowd.com bugcrowd.outrch.com.
proxilate.bugcrowd.com proxilate.a.bugcrowd.com.

License

DNSProbe is made with ๐Ÿ–ค by the projectdiscovery team.

dnsprobe's People

Contributors

ehrishirajsharma avatar ehsandeep avatar mzack9999 avatar rotemreiss avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.