Re: [SQU] localhost ip address fails to resolve

From: C. Regis Wilson <[email protected]>
Date: Thu, 7 Sep 2000 11:25:37 -0700

>I have a web server running on the same machine as my squid proxy and I
>would like to access it using "localhost" rather than the machine's
>hostname, however, when I type http://localhost into my web browser I get
>the squid error below.
>
>By the way, using 127.0.0.1 works here but the name "localhost" does not.
>Is there any way to tell my squid proxy that localhost resolves to
>127.0.0.1? Or even my machine's actual ip?
>
>I appreciate the help.
>
Classic case of DNS not finding 127.0.0.1! :)

You can add localhost.yourdomain.com to your DNS tables, which is ill advised
for an externally accessible DNS server, or you can use localhost.localdomain
and add localhost.localdomain to your /etc/named.boot file (and add an A
record for the domain to your tables):

localhost IN A 127.0.0.1

Also, if you're feeling frisky, in your 0.0.127.in-addr.arpa file:

1 IN PTR localhost.local.domain

Remember, this should only be for internal-only lookups. Having
localhost.yourdomain.com return 127.0.0.1 would return the client's localhost
(if they even know what localhost is!).

--
To unsubscribe, see http://www.squid-cache.org/mailing-lists.html
Received on Thu Sep 07 2000 - 12:27:58 MDT

This archive was generated by hypermail pre-2.1.9 : Tue Dec 09 2003 - 16:55:13 MST