blechschmidt / massdns

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

The parameter "--type" or "-t" does not seem to work. #63

Closed shmilylty closed 4 years ago

shmilylty commented 4 years ago

The parameter "--type" or "-t" does not seem to work.. From the result, other DNS record types are queried.

My run command:.\bin\massdns.exe -r .\lists\resolvers.txt --type A -o J -w .\bin\qq.json .\bin\qq.txt image

Is there a way for massdns to query only the specified DNS record type?

Massdns is an excellent tool, looking forward to your reply ~

blechschmidt commented 4 years ago

When an A record is queried, it is perfectly fine for a resolver to return a CNAME record. This is expected behavior. In your case, massdns queries A records but there is just a CNAME alias. CNAME flattening (i.e. pretending the A record of the CNAME alias was the A record of the domain you queried) is not supported.