In my /etc/hosts file I have a custom entry since the name doesn't actually exist like this:
5.5.5.5 someintealserver.thing.net #thats a fake IP for this post
Using curl like so:
curl -o /dev/null http://someintealserver.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://someintealserver.thing.net/img/panda.jpg
This was working perfectly fine until this moing. How do I even go about troubleshooting this?
I caot add an IPV6 address to /etc/hosts as the inteal 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.
برچسب:
نویسنده: استخدام کار