Skip to content

Instantly share code, notes, and snippets.

@p120ph37
Created November 19, 2020 23:00
Embed
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"' -- example.com
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment