dig $DOMAIN @$IP

Query a DNS server for records and attempt a zone transfer against the target nameserver

Command: Linux

References:

https://www.kali.org/tools/bind9/#dig