Skip to content

Instantly share code, notes, and snippets.

@jcefoli
Last active October 8, 2019 18:06
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jcefoli/af84add1da892e75da84104eddd3389b to your computer and use it in GitHub Desktop.
Save jcefoli/af84add1da892e75da84104eddd3389b to your computer and use it in GitHub Desktop.
Performs 100 dns lookups against a domain and sorts the responses. Useful for testing DNS load balancing. (Bash one-liner)
for i in {1..100}; do dig mydomain.com @my.nameserver.com +short; done | sort | uniq -c
# replace mydomain.com with your domain name
# replace my.nameserver.com with the hostname of your domain's nameserver
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment