Created
November 19, 2020 23:00
-
-
Save p120ph37/57c3f893f075bfef15f0106383456724 to your computer and use it in GitHub Desktop.
Time the DNS query response time for a particular domain name
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
perl -MTime::HiRes=gettimeofday,tv_interval -e'my $tv=[gettimeofday];gethostbyname($ARGV[0]);print tv_interval($tv)."\n"' -- example.com |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment