Skip to content

Instantly share code, notes, and snippets.

@mmv-ru
Last active March 25, 2022 17:23
Show Gist options
  • Save mmv-ru/05b9b5b049fe890b5ebd22a2a6d623f2 to your computer and use it in GitHub Desktop.
Save mmv-ru/05b9b5b049fe890b5ebd22a2a6d623f2 to your computer and use it in GitHub Desktop.
Check DNS servers for ref-com.ru
for s in ns3-l2.nic.ru. ns4-l2.nic.ru. ns8-l2.nic.ru. ns4-cloud.nic.ru. 8.8.8.8 1.1.1.1 172.17.252.1 ; do echo "$s $(/usr/bin/time -f %e -- host -t A ref-com.ru $s >/dev/null && echo Ok || echo Failed)" ; done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment