I have names for my computers but whenever I ssh I always have to use the full IP address. If I try to run say
I get an error,
Code: Select all
ssh: Could not resolve hostname tux: Name or service not known
I know of a couple solutions to this and they mostly involve static IP addresses and modifying your hosts file which would be great if I was always on the same network but I don't want to have to set up different host files for every network I join, I just want it to be dynamic.
Usually routers have dns servers so I tried adding my router to /etc/resolv.conf but it didn't seem to do anything. Is there like a refresh you have to do when you modify that file (init 2 / init 5?) or am I simply doing it wrong?