DNS (53)

Zone Transfer (AXFR)

terminal
dig AXFR @<IP_DEL_SERVIDOR_DNS> <dominio>

Enumeration

If the zone transfer does not work, we can use tools such as fierce or subfinder to discover subdomains.
terminal
fierce --domain inlanefreight.htbsubfinder -d inlanefreight.htb
A resolver is used to resolve the domain. With dig any @10.129.203.69 inlanefreight.htb, the IP is a resolver. If you specify a resolver that does not allow resolution, it will not show any records (A, CNAME, TXT, AAAA, etc).
The trick for the exercise: the nameservers you find (ns.inlanefreight.htb, etc.) can be resolvers for other subdomains, so you need to keep adding them to a resolvers.txt list and continue fuzzing subdomains (with subbrute, dnsx, dnsenum...). By finding hr.inlanefreight.htb, we can perform a zone transfer.