Today I came across a weird one (aren't they all?).
On a computer running OpenSUSE 11.3 Linux OS.
I could "ping github.com"
But! "ssh github.com" would not work! "ssh: Could not resolve hostname" was the error. Why would ping work and not ssh?
Through some fiddling around I determined that ssh only queries the first entry in the DNS file /etc/resolv.conf!!! The first entry in my /etc/resolv.conf was a local DNS for internal purposes.
I solved the problem by moving the first entry to the end of the list in /etc/resolv.conf. Now ssh can find the address of github.com.

No comments:
Post a Comment