Created
November 28, 2010 16:14
-
-
Save kriskhaira/719060 to your computer and use it in GitHub Desktop.
Useful for checking DNS propagation with Google Public DNS and OpenDNS after migrating servers
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
#!/bin/bash | |
# checkdns | |
# A very simple dig tool for checking DNS propagation with Google Public DNS and OpenDNS after migrating servers | |
# | |
# INSTRUCTIONS | |
# Put this in your ~/bin folder, make it executable and run it by typing "checkdns" in your command line | |
read -p "Enter domain: " domain | |
# Google Public DNS | |
dig @8.8.8.8 $domain | grep -a1 'ANSWER SECTION' | |
dig @8.8.4.4 $domain | grep -a1 'ANSWER SECTION' | |
# OpenDNS | |
dig @208.67.220.220 $domain | grep -a1 'ANSWER SECTION' | |
dig @208.67.222.222 $domain | grep -a1 'ANSWER SECTION' | |
# Streamyx, a Malaysian ISP | |
dig @202.188.0.133 $domain | grep -a1 'ANSWER SECTION' | |
dig @202.188.1.23 $domain | grep -a1 'ANSWER SECTION' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment