AlephNullSK / dnsgen

Generates combination of domain names from the provided input.
MIT License
884 stars 115 forks source link

Tool Usage Tips #1

Closed cihanmehmet closed 4 years ago

cihanmehmet commented 4 years ago

It can be used for DNS resolution as follows.

Sample usage

Usage 1(fping)

cat domains.txt | dnsgen - |fping|grep "alive"|cut -d " " -f1>resolvers.txt

Usage 2(httprobe )

cat domains.txt | dnsgen - |httprobe|cut -d "/" -f3|sort -u |tee resolvers.txt
resolver
ghost commented 4 years ago

is there a way to output this to a file? i did not see a way to only to print out on my terminal?

PatrikHudak commented 4 years ago

@soupnatzi You can redirect the STDOUT to any file you want

dnsgen domains.txt > output.txt

...or if you want to pipe it further and still save it then dnsgen domains.txt | tee output.txt | nextcommand

PatrikHudak commented 4 years ago

@cihanmehmet These definitely work as well, the dnsgen is used only for generation, resolving part if left up to user.

ghost commented 4 years ago

@PatrikHudak got it thanks Patrick great tool and this is giving way less false positives then altdns.