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: 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	host.lima.internal 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?