evilsocket / dnssearch

A subdomain enumeration tool.
GNU General Public License v3.0
894 stars 137 forks source link

[FIX] Do not parse TLD to allow running thought X.TLD.COM just as well #14

Closed AvnerCohen closed 7 years ago

AvnerCohen commented 7 years ago

Issue: ./dnssearch -domain env.tld.com

Will search through tld.com instead of env.tld.com

As a user of the lib, I really felt like I want to be protected from empty string, but beyond that, I want to have full control on the domain pattern I want to run my search over.

Add now as a command line (force-tld), defaults to current behavior, so not breaking API.

Worth noting that I fully understand original intention to to search subdomain over TLD, but I am not sure I see the value in forcing this, with the new flag, it's up to the user to have a more powerful tool with out the stripping decision imposed on him.

evilsocket commented 7 years ago

I'll edit it to keep as default in order not to break backwards compatibility.