Skip to content

Instantly share code, notes, and snippets.

@kvz
Created January 18, 2012 21:48
Show Gist options
  • Save kvz/1635967 to your computer and use it in GitHub Desktop.
Save kvz/1635967 to your computer and use it in GitHub Desktop.
Amazon resolving DNS issues
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