scottbomb
November 15th, 2018, 07:50 PM
Hello everyone,
I've been using ssh to connect to computers in my house for several years and have never had a real problem with it until now. I can ping and ssh to these hosts with no problem so long as I use the IP address. I cannot, however, connect or ping them with their host names. All I get is:
ssh: Could not resolve hostname host name goes here: Temporary failure in name resolution
There's nothing temporary about it.
I can't seem to find the cause of this. I've read elsewhere that Ubuntu no longer resolves hostnames. Logically, that leaves me to believe it's done at the router. I thought it might be prudent to check here first before I wipe the router's NVRAM and reconfigure it.
The router has an active DHCP server and these hosts all have static IP addresses set at the router, which also knows their host names (dhcp is on for visitors). I do occasionally ssh in from a remote location. I wrote a config file (~/.ssh/config) a while back that allows me to use abbreviations for hostnames and it goes through a dynamic DNS lookup for when I'm away from home. Perhaps using this to connect two machines on the same LAN caused this problem? The router uses port forwarding for outside connections (which works fine) but on the LAN, it's IP address or no connection. I've now disabled the ~/.ssh/config file by renaming it but getting the same error.
The router uses Tomato firmware which is based on Linux 2.6. I can ssh to the router to check files but not seeing any problems. There is a file /etc/dnsmasq/hosts/hosts that has all of the ip addresses listed with their corresponding hostnames. I've tried both service dnsmasq restart as well as service nscd restart. It says ok after each but I still cannot ssh from one machine to the other with the hostname.
Is there somewhere else I need to be looking? I'm happy to gather add'l info. if needed.
Thanks!!
I've been using ssh to connect to computers in my house for several years and have never had a real problem with it until now. I can ping and ssh to these hosts with no problem so long as I use the IP address. I cannot, however, connect or ping them with their host names. All I get is:
ssh: Could not resolve hostname host name goes here: Temporary failure in name resolution
There's nothing temporary about it.
I can't seem to find the cause of this. I've read elsewhere that Ubuntu no longer resolves hostnames. Logically, that leaves me to believe it's done at the router. I thought it might be prudent to check here first before I wipe the router's NVRAM and reconfigure it.
The router has an active DHCP server and these hosts all have static IP addresses set at the router, which also knows their host names (dhcp is on for visitors). I do occasionally ssh in from a remote location. I wrote a config file (~/.ssh/config) a while back that allows me to use abbreviations for hostnames and it goes through a dynamic DNS lookup for when I'm away from home. Perhaps using this to connect two machines on the same LAN caused this problem? The router uses port forwarding for outside connections (which works fine) but on the LAN, it's IP address or no connection. I've now disabled the ~/.ssh/config file by renaming it but getting the same error.
The router uses Tomato firmware which is based on Linux 2.6. I can ssh to the router to check files but not seeing any problems. There is a file /etc/dnsmasq/hosts/hosts that has all of the ip addresses listed with their corresponding hostnames. I've tried both service dnsmasq restart as well as service nscd restart. It says ok after each but I still cannot ssh from one machine to the other with the hostname.
Is there somewhere else I need to be looking? I'm happy to gather add'l info. if needed.
Thanks!!