Curl inside Lima

It seems that trellis-cli adds the hostname to /etc/hosts based on this.

That hostname usually is something like lima-example (if used example.test has the site-host.
The /etc/hosts then looks like this:

127.0.0.1 localhost

# The following lines are desirable for IPv6 capable hosts
::1 ip6-localhost ip6-loopback
fe00::0 ip6-localnet
ff00::0 ip6-mcastprefix
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters
ff02::3 ip6-allhosts
192.168.5.2	host.lima.internal
127.0.0.1 lima-example

If we try to curl example.test inside lima (after trellis vm shell) it fails.
Do we need to to edit /etc/hosts manually so we can have the guest (ubuntu) calling example.test correctly?