I have a laptop configured with hostname (i.e. mycomputer.mynetwork) I would like this hostname to resolve to the private IP of this laptop. Not 127.0.0.1, I would it to resolve to the private IP the network is giving me. And I would like this to be automatically updated when I connect to another network.
The ultimate goal is that other docker container running on this computer can resolve mycomputer.mynetwork correctly and automatically.
Is this possible? I looked at dnsmasq without much luck.