1

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:

website.test 10.10.10.35

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?

  • Put the IPv6 address in /etc/hosts also? – Michael Hampton Jun 6 at 21:05

You must log in to answer this question.

Browse other questions tagged .