0
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.
Doesn't Docker set up an internal network completely independent from your LAN? – user1686 – 2018-03-25T11:05:57.657
Yes, correct, I could use this to address the host from the containers. Yet, if someone knows how to do that with dnsmasq or something that would be great – Christophe Schmitz – 2018-03-25T11:20:03.283