How to list all records below some domain name.
Usually it’s done from interactive nslookup mode, not from batch mode
nslookup - your_dns_server >set q=any >ls -d domain.name
listing may be prohibited by administrator or by firewall settings, in that case you get empty output or ‘not implemented’ errors.
How to get all records of the domain name itself. In that case you need to run on Windows:
nslookup -"set q=all" yourdomain.com
nslookup -q=any yourdomain.com