通过代理发送curl请求时的ERR_DNS_FAIL

时间:2017-11-07 22:25:16

标签: curl proxy http-proxy squid

当我使用它代理google / facebook等常规网站时,我的代理工作正常。但是当我尝试卷曲应该可用的内部主机时,我收到以下消息:

<div id="content">
<p>The following error was encountered while trying to retrieve the URL: <a href="http://x.yz.com/">http://x.yz.com/</a></p>

<blockquote id="error">
<p><b>Unable to determine IP address from host name <q>x.yz.com</q></b></p>
</blockquote>

<p>The DNS server returned:</p>
<blockquote id="data">
<pre>Name Error: The domain name does not exist.</pre>
</blockquote>

<p>This means that the cache was not able to resolve the hostname presented in the URL. Check if the address is correct.</p>

<p>Your cache administrator is <a href="mailto:webmaster?subject=CacheErrorInfo%20-%20ERR_DNS_FAIL&amp;body=CacheHost%3A%20538a0f427a73%0D%0AErrPage%3A%20ERR_DNS_FAIL%0D%0AErr%3A%20%5Bnone%5D%0D%0ADNS%20ErrMsg%3A%20Name%20Error%3A%20The%20domain%20name%20does%20not%20exist.%0D%0ATimeStamp%3A%20Tue,%2007%20Nov%202017%2022%3A18%3A35%20GMT%0D%0A%0D%0AClientIP%3A%20192.168.99.1%0D%0A%0D%0AHTTP%20Request%3A%0D%0AGET%20%2F%20HTTP%2F1.1%0AUser-Agent%3A%20curl%2F7.43.0%0D%0AAccept%3A%20*%2F*%0D%0AProxy-Connection%3A%20Keep-Alive%0D%0AHost%3A%x.yz.com%0D%0A%0D%0A%0D%0A">webmaster</a>.</p>
<br>
</div>

<hr>
<div id="footer">
<p>Generated Tue, 07 Nov 2017 22:18:35 GMT by 538a0f427a73 (squid/3.5.12)</p>
<!-- ERR_DNS_FAIL -->
</div>

代理设置在设置所述主机的同一个vm中。我该怎么办?谢谢!

0 个答案:

没有答案