Well, very long time can be spent when you have to resolve multiple domains to IP addresses, for purpose of creating some access lists or ip tables. This is very small and useful nslookup script that resolving a list of domain names to IP.
First create .txt file, like domani.txt or something. Then inside list all domain you want to check for IP addresses:
Save file to root, or C: if you prefer more. Then start command prompt (CLI – Start – Run box – cmd) and navigate to C: with switch cd .. . After you reached C: type following script:
for /F %x in (domain.txt) do nslookup %x
As soon as you hit enter you will reach data you need. Output will look something like following:
We hope that this tutorial was informative to you ant thank you for visiting our website.