I have a hosts entry to redirect app-dev/ to my application server. This resolves correctly in the browser but when I try to ping app-dev/ or ssh into it, neither can resolve the name then. The only change I made was to add a line in the /etc/hosts file and flush the dns cache. What am I forgetting? Or is this just not possible outside of the browser?

  • 1
    to clarify, you are not entering the trailing / when attempting to ping/ssh, right? that would not work correctly. – Frank Thomas Sep 26 '13 at 15:13
  • 1
    Ah. That was stupid. That was the way I was forced to enter it in the browser. This worked. Feel free to post as an answer! – eatonphil Sep 26 '13 at 15:22

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.