Why does hostname gets prefixed with lima-<hostname> and why are .local lookups not working? #1634
-
These are two questions in one but somewhat related., 1.- The instance names always get prefixed with lima-
2.- Regarding .local resolution, I understand it is using a local agent to pull DNS via the host resolver, however, it isn't working. I am running on bridge mode, getting an IP from my DHCP just fine, and so I am basically trying to make it so I don't have to use /etc/hosts anywhere in my network and I just access my lima instances via HOSTNAME.LOCAL and viceversa. I come from Multipass and I always installed AVAHI on all instances there but it seemed like LiMa does a much better job at controlling how DNS and networking works which is great - Multipass is a bit of a wild mess for stuff like this. UPDATE on (2): I just installed AVAHI on one instance and .local resolution seems to be working. However, I am still curious as to that is even necessary with LiMa out of the box...? |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 1 reply
-
There's some related information about local resolution at #2018 |
Beta Was this translation helpful? Give feedback.
-
Because I wanted to name the default instance "default" but I didn't want a host named "default" to exist. If somebody submits a PR to allow specifying a custom hostname, I think we can happily accept it.
I guess this should just corresponds to the distro (Ubuntu)'s choice? |
Beta Was this translation helpful? Give feedback.
-
running To properly remove the |
Beta Was this translation helpful? Give feedback.
Because I wanted to name the default instance "default" but I didn't want a host named "default" to exist.
Also, hostnames like "ubuntu", "debian", etc. are likely to conflict with existing hosts.
If somebody submits a PR to allow specifying a custom hostname, I think we can happily accept it.