Question: network with predictible hostnames #2018
-
I'm bringing up multiple VMs, and adding them to the same user network:
Looking at the instructions here https://lima-vm.io/docs/config/network/#lima-user-v2-network that seems to be the last option. What I'm able to do is get the actual ip address from
And then my application can query for lima-flux-0 or lima-flux-1 and it's associated with an address. I'm wondering if there is a way to automate this, so I could ping lima-flux-0 and get that address without needing to modify /etc/hosts? Note that the hostname command returns the correct name in the VM, but I can't use that to ping another one (without the addition. Thank you! |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 8 replies
-
We should enhance the built-in DNS to support looking up hostnames. A workaround would be to use mDNS, but I couldn't get it to work. |
Beta Was this translation helpful? Give feedback.
-
For user-v2 it should already work. If you call Just that you need to user .internal suffix for it to work. I remember this was documented somewhere i will check and add if this is not captured |
Beta Was this translation helpful? Give feedback.
For user-v2 it should already work. If you call
lima-flux-0.internal
from lima-flux-1 instance.Just that you need to user .internal suffix for it to work. I remember this was documented somewhere i will check and add if this is not captured