0
In my /etc/hosts file I have a custom entry since the name doesn't actually exist like this:
5.5.5.5 someinternalserver.thing.net #thats a fake IP for this post
Using curl like so:
curl -o /dev/null http://someinternalserver.thing.net/img/panda.jpg
Takes 6 seconds. 5.5 for DNS lookup and 0.5 for actually downloading the file.
If I force curl to use IPV4 it works without delay
curl -4 -o /dev/null http://someinternalserver.thing.net/img/panda.jpg
This was working perfectly fine until this morning. How do I even go about troubleshooting this?
I cannot add an IPV6 address to /etc/hosts as the internal network here doesn't support it. Forcing curl to IPV4 works fine if I want to use terminal but the real problem is with scripts/apps that utilize curl.
Which version of OS X? What's your
/etc/resolv.conf
set to? What IPv6 configuration is your Mac using? – Spiff – 2016-05-05T04:32:15.543