Hi,
I have a PC and a laptop, and I need to access the laptop from the PC via ssh and VNC. Most times, the laptop is connected via LAN. But sometimes, I move it to a place where I don’t have LAN.
When I do that, the laptop’s network manager switches the connection, and it still can access the internet (and the PC), but the PC can’t access the laptop anymore. I found out that nsloopkup laptop
still replies the IP from the LAN connection.
Is there a way to update the router’s DNS when the laptop requests a new DHCP lease using the same hostname ?
Or better … Is there some setting to have this update done automaticallly ?
I can use ssh and VNC using the IP instead of the hostname, but all my scripts and the VNC settings (remmina) are set up to the hostname and I would like to avoid having to change all of them, as the IP also changes when I switch.