18 May 2012

Nslookup indefinitely using PowerShell

If you are waiting for a specific DNS record to be created, then it’s nice to use the following PowerShell command:

do {nslookup google.ee. 8.8.8.8;sleep 1} while (1)

image

It’s an indefinite loop with two commands:

  1. nslookup for DNS query;
  2. sleep for waiting one second between the next query

It can be used for other commands too.

1 comment:

  1. This comment has been removed by a blog administrator.

    ReplyDelete