On 14/11/17 11:21, tappdint wrote:
I'm quite new to proxies/networking so I'll try and be as verbose as I can. I
have a VM that will request access to an internal host (dev.abc.com). This
host container and other containers which are dependencies are created
locally on my mac (using docker for mac). So I also run a docker squid
container (datadog/squid) on my mac to allow that VM to use the same
network/access same hosts. From inside my VM when I use the proxy to curl
sites like Google/Facebook/Yahoo i get proper responses. But when I curl
this host I get an ERR_DNS_FAIL result.
<div id="content">
<p>The following error was encountered while trying to retrieve the URL:
http://dev.abc.com/ <http://dev.abc.com/> </p>
<blockquote id="error">
<p>*Unable to determine IP address from host name <q>dev.abc.com</q>*</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>
There should be nothing mysterious here. The above error message text is
literal and clear about the problem as can be. If you do not understand
them please lookup the terms is uses.
"the cache" here is a less common term meaning your Squid. The others
are all common networking names for the pieces and things happening.
I've searched online for posts with similar errors but I'm still confused. I
*think* that the issue lies in my squid config but I'm not sure what exactly
I need to modify/add. I basically took the huge config file provided by the
image and removed all the unnecessary comments/options. The site said that
/Please note that the stock configuration available with the container is
set for local access
/. So thats currently what my config does. Here is what is looks like:
... <snip default Squid-3 config documentation file>
What modifications/config options should i be looking into so that my
internal host resolves? Thanks!
You need to either;
* configure the VM running Squid to use a DNS resolver that knows what
the internal domains are, or
* configure the DNS resolver it is using to know those internal
hostnames, or
* configure your network using the standardized .local namespace
intended for local hostnames and all the VMs to use m-DNS.
Amos
_______________________________________________
squid-users mailing list
squid-users@lists.squid-cache.org
http://lists.squid-cache.org/listinfo/squid-users