Yesterday I was able to ssh into my development box by using the machine name. Today, I can't. I can
nslookup and use chrome to navigate to my box using just the machine name.
ssh do not resolve with just the machine name. Everything resolves if I use the fully qualified domain name. It all also resolves if I use the ip address. I am on an internal network (10.0.0.x).
$ dscacheutil -flushcache; sudo killall -HUP mDNSResponder $ nslookup my-dev-box Server: 10.0.0.113 Address: 10.0.0.113#53 Name: my-dev-box.thedomain.internal Address: 10.0.0.106 $ ssh my-dev-box ssh: Could not resolve hostname my-dev-box: nodename nor servname provided, or not known $ ssh my-dev-box.thedomain.internal password: xxx Have a lot of fun... (it worked)
When I have ssh'd into my development box, I use the
hostname command and it returns
When I type
my-dev-box into chrome, it takes me to my development site just fine.
In system preferences, on my wireless network (I'm on wireless for all this) in the DNS settings I have
thedomain.internal listed under search domains.
What setting am I missing or how would I troubleshoot / restore ssh using a less fully qualified host name?
So far the solution was to restart my macbook after all the steps above. SSH is working like it did before (connecting with just machine name on internal network.) Still don't know the cause of the error.