Created
January 18, 2012 21:48
-
-
Save kvz/1635967 to your computer and use it in GitHub Desktop.
Amazon resolving DNS issues
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
root@cuc:~# grep nameserver /etc/resolv.conf | |
nameserver 172.16.0.23 | |
root@cuc:~# time ssh git@github.com | |
ssh: Could not resolve hostname github.com: Temporary failure in name resolution | |
real 0m40.043s | |
user 0m0.000s | |
sys 0m0.008s | |
root@cuc:~# cp /etc/resolv.conf{,.bak} && cat /etc/resolv.conf.bak |sed 's#172\.16\.0\.23#8.8.8.8#g' > /etc/resolv.conf; grep nameserver /etc/resolv.conf | |
nameserver 8.8.8.8 | |
root@cuc:~# time ssh git@github.com | |
PTY allocation request failed on channel 0 | |
real 0m0.297s | |
user 0m0.012s | |
sys 0m0.016s |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment