1. Assume the dns server (Domain Controller) is dnsserver2003.
2. Now run the below command to list the domains contained in a forest.
ntdsutil "d m" "sel op tar" c "co t s dnsserver2003" q "l d" q q q
dsquery * -filter "objectcategory=domainDNS" -scope subtree
Third party tools like adfind can also be used to find domains in a forest.
adfind root s subtree f "objectcategory=domainDNS" -dn
No comments:
Post a Comment