0
I have a server with Ubuntu 14.04 Trusty VPS and would like to know if using the Curl library solves DNS locally for a subdomain.
I have 2 domains on the same server and 1 is a subdomain (Webservice).
Making a call from Curl to the webservice the same will be solved local or it will go over the internet?
If you go over the Internet like I do to solve it locally?
(I am evaluating this because I believe that resolving it locally will decrease the time of the request)
I don’t think so, buddy.
– Guilherme Nascimento
If the problem is that the address is being solved more slowly than it should, try to use
curl_setopt($ch, CURLOPT_NOSIGNAL, 1);
.– bfavaretto