MacOS – Mavericks – ssh to host under search domain

dnsmacosssh

I am VPNed in to a network which has its own search domain, and it mostly works – I don't have to type the domain in the browser, and the host command resolves to the correct IPs.

However, when I try to ssh to a host on that network, ssh tells me it could not resolve the hostname.

This is very perplexing as I have never seen this issue before – the system is either resolving correctly or not at all.

Any thoughts or suggestions?

Thanks.

Best Answer

Have you tried to SSH to the IP address? It may be simple enough to work. Take the DNS out of the picture if you have the IP addresses of the hosts.

Whenever I use SSH out of Terminal I have always used the IP address and never had any issues.