Get any level of subdomain from 1....N
go get -u github.com/MPaandeey/dlevel
📄 files.txt
hackerone.com
info.hackerone.com
managed.hackerone.com
forwarding.hackerone.com
a.ns.hackerone.com
b.ns.hackerone.com
▶ cat files.txt | dlevel 2
ns.hackerone.com
info.hackerone.com
managed.hackerone.com
forwarding.hackerone.com
▶ cat files.txt | dlevel 3
a.ns.hackerone.com
b.ns.hackerone.com
Inspired by 0xdln1 and tomnomnom code for help to remove duplicates .