My Mac is running dual stack IPv4/IPv6 which works fine. In my /etc/hosts I have added a IPv4 pointer to my development VM like so:
This works fine. But I noticed that some programs take about 5 seconds before actually performing a request and I have narrowed it down to the program/OS trying to resolve the hostname with a IPv6 address first.
If I curl -4 the hostname it works instantly.
Is there any way to change this behavior?