. Advertisement .
..3..
. Advertisement .
..4..
I am trying to write a programs that returns the invalid answer. I don’t know where the incorrect command is in the “nodename nor servname provided or not known”. My detail is:
ssh user@[local IP]
and I end up with the warning message:
ssh: Could not resolve hostname [hostname]: nodename nor servname provided, or not known
Pls, suggest the best answer to fix it.
The cause: The error occurs perhaps due to symlinked /etc/hosts won’t be read on some apps( for example on macOS)
Solution: It need to be hardlinked, so you can do as below suggestion:
If you are on Mac, I was able to fix the problem by restarting the DNS responder.