blechschmidt / massdns

A high-performance DNS stub resolver for bulk lookups and reconnaissance (subdomain enumeration)
GNU General Public License v3.0
3.1k stars 459 forks source link

only NXDOMAIN scan?? #46

Closed Phoenix1112 closed 4 years ago

Phoenix1112 commented 5 years ago

hello . thanks for this program... With massdns i just want to get nxdomain results? What command should I run to find nxdomain subdomain names?

mansoorr123 commented 4 years ago

Although above problem can be solved by : ./massdns -q -t A -r /opt/resolvers.txt domain_list.txt -o F -w output_massdns.txt cat output_massdns.txt | grep NXDOMAIN -A 7 | grep CNAME But it is not efficient.

blechschmidt commented 4 years ago

The ndjson output format now allows to easily scan for NXDOMAIN results. The status field can be used for filtering.

Example output (pretty-printed):

{
   "name":"doesnotexist-lalala.com.",
   "type":"A",
   "class":"IN",
   "status":"NXDOMAIN",
   "data":{
      "authorities":[
         {
            "ttl":899,
            "type":"SOA",
            "class":"IN",
            "name":"com.",
            "data":"a.gtld-servers.net. nstld.verisign-grs.com. 1584909553 1800 900 604800 86400"
         }
      ]
   },
   "resolver":"8.8.8.8:53"
}