Based on the built-in PowerShell command
Code: Select all
Resolve-DnsName -Name bing.com -Type NS -DnsOnl
1. Get the public IP address of the domain names in the .TXT file (or .CSV)
2. Get the DNS server responsible for the domain in the input .TXT file
3. Export the list as .CSV like below:
DomainName, PublicIP, DNS Server (NameHost)
www.domain1.com, 71.13.123.22, NS1.domain1.com
www.domain1.com, 71.13.123.25, NS2.domain1.com
www.domain2.com, 201.52.234.1, NS1.domain2.com
Input .TXT file:
www.domain1.com
www.domain2.com
...
Your help would be greatly appreciated.
Thanks,