Unable to determine the IP address from the host name

We have an iMac working as an internal dev server with Apache, PHP and Mysql.

It has several virtual host files, and it works brilliantly when accessing iMac.

We also launch the Squid proxy server http://web.me.com/adg/squidman/ so that we can access the network through our connection when we are mobile.

General web browsing, and this is normal when accessing through a proxy server, however, when we try to access the virtualhost URL, for example ourtestsite.dev, we get the following message:

Blockquote, he found an error while trying to get the url: http://ourtestsite.dev/

Unable to determine IP address from host name "ourtestsite.dev" 

DNS server is back:

 Name Error: The domain name does not exist. 

This means that the cache could not resolve the host name specified in the URL. Check the address is correct.

The cache administrator is a webmaster.

Can someone shed some light on how we make these URLs accessible through proxies?

thanks

+4
source share
2 answers

in iMac network configuration, I said that do not use proxies for addresses that were * .dev

I had it before with. local addresses, but * .local is automatically added as an exception.

So, adding a template decided, and we are golden :-)

+3
source

Just add an entry to the hosts file on your squid server, pointing to all the actually hosted domains on the iMac IP address. This will bypass DNS queries for these domains.

0
source

Source: https://habr.com/ru/post/1392998/


All Articles