resolve-dnsname suddenly slow

Welcome Forums General PowerShell Q&A resolve-dnsname suddenly slow

Viewing 0 reply threads
  • Author
    Posts
    • #271084
      Participant
      Topics: 33
      Replies: 64
      Points: 224
      Rank: Participant

      i wrote a script that includes resolve-dnsname.  running in the ISE. it was in the milliseconds last night when i was testing the script, but this morning, the two commands below are in the 6-7 second range. quicktimeout is actually 1-2 seconds longer. 10.10.10.10 is a fake ip that doesn’t resolve. on working IPs, these are 6-7 milliseconds.

      measure-command {resolve-dnsname 10.10.10.10 -QuickTimeout}
      measure-command {resolve-dnsname 10.10.10.10 }

      -persists through a reboot
      -doesn’t matter if i point it at different dns servers
      -happens in the ise, shell, and 7 shell
      -doesn’t happen on other machines
      -measure-command {nslookup 10.10.10.10} is 300 milliseconds

      so it would seem this is something specific to powershell and specific to my one machine? any ideas?

Viewing 0 reply threads
  • You must be logged in to reply to this topic.