Skip to content

Instantly share code, notes, and snippets.

Created November 19, 2020 23:00
What would you like to do?
Time the DNS query response time for a particular domain name
perl -MTime::HiRes=gettimeofday,tv_interval -e'my $tv=[gettimeofday];gethostbyname($ARGV[0]);print tv_interval($tv)."\n"' --
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment