Actually, it looks like I am running 2.4 STABLE 1. The DNS issue is
still a problem, it's still DNSing bdogg.example.com to my ipmasq's
external ip address, rather than using the named server on the localhost
to DNS it to a specific, internal webserver. It couldn't be because I
don't have 2.4 STABLE 4 correct?
-----Original Message-----
From: bdogg [mailto:bdogg@attbi.com]
Sent: Wednesday, March 06, 2002 4:45 AM
To: 'Adrian Chadd'
Subject: RE: [squid-users] Squid using a different DNS server
My comments below.
-----Original Message-----
From: Adrian Chadd [mailto:adrian@squid-cache.org]
Sent: Wednesday, March 06, 2002 4:10 AM
To: bdogg
Subject: Re: [squid-users] Squid using a different DNS server
You haven't turned on the http acceleration options.
Search the config file for httpd_accel or http_accel.. one
of the two.
You need to turn it on
probably use 'virtual', since you're using your own DNS server
to do the mapping to the backend hosts.
Cool, we're making progress.
I uncommented the httpd_accel_port 80 line in my conf file and added
httpd_accel_host virtual. I then got this error:
ERROR
The requested URL could not be retrieved
------------------------------------------------------------------------
--------
While trying to retrieve the URL: http://12.254.159.101/
The following error was encountered:
Access Denied.
Access control configuration prevents your request from being allowed at
this time. Please contact your service provider if you feel this is
incorrect.
Your cache administrator is root.
Looks like it's trying to fetch from my ipmasq's external
address...which is what attbi and other DNS servers on the internet have
as it's ip, but my internal DNS server knows otherwise.
If you want to turn on the squid to be a Proxy _AND_ an
accelerator, then turn that option on, but be very careful rwith
your rules. They SHOULD look like this in this case:
To be a proxy and an accelerator... What are the gains from doing this?
Will it just acting as an accelerator handle my current situation?
<rules>
Added to my conf file.
.. this way you limit requests to either:
* from ALL to your local webserver network, or
* from your local network to ALL.
Note, the dst ACL works with whatever your DNS Maps the
webservers to, rather than the "public facing" ips, obviously as
long as you have the DNS setup rightr. I'd use a hosts file (either
/etc/hosts by default, or you can change this in the squid.conf
file) to do the localised webserver -> local ip mapping. Thats how I do
it.
Good luck, and tell me how it goes!
No dice...yet :)
Adrian
On Wed, Mar 06, 2002, bdogg wrote:
> This is the error I get while trying to reach webserver1
>
> ERROR
> The requested URL could not be retrieved
>
> ----------------------------------------------------------------------
> --
> --------
>
> While trying to retrieve the URL: /
>
> The following error was encountered:
>
> Invalid URL
> Some aspect of the requested URL is incorrect. Possible problems:
>
> Missing or incorrect access protocol (should be `http://'' or similar)
> Missing hostname Illegal double-escape in the URL-Path
> Illegal character in hostname; underscores are not allowed
>
>
>
> :/ Weird, the DNS server is working correctly.
>
> -----Original Message-----
> From: Adrian Chadd [mailto:adrian@squid-cache.org]
> Sent: Wednesday, March 06, 2002 3:44 AM
> To: bdogg
> Subject: Re: [squid-users] Squid using a different DNS server
>
>
>
> Which version of squid? And which compile options?
>
>
>
>
> adrian
>
> On Wed, Mar 06, 2002, bdogg wrote:
> > Tried...nothing, no change...
> >
> > I will try again though. I know though it's not a fault of my DNS
> > server running on localhost, because I can set it as the DNS server
> > for my computer, and DNS webserver1.example.com to 192.168.0.2 and
> > webserver2.example.com to 192.168.0.3.
> >
> > -----Original Message-----
> > From: Adrian Chadd [mailto:adrian@squid-cache.org]
> > Sent: Wednesday, March 06, 2002 3:02 AM
> > To: bdogg
> > Cc: squid-users@squid-cache.org
> > Subject: Re: [squid-users] Squid using a different DNS server
> >
> >
> > On Wed, Mar 06, 2002, bdogg wrote:
> > > Hello,
> > >
> > > I have been reading, searching, and praying for an answer to this
> > > question. I have an ipmasq that is connected to the attbi.com
> network
> >
> > > and uses their DNS servers. I want to run multiple webservers
> > > behind
> > > this ipmasq and so I am setting up the current setup.
> > >
> > > I have a domain (domain.com for example) and all wildcards that
> > > DNS
> > > to
> >
> > > the external address of my ipmasq. I forward port 80 of my
> > > external interface to port 1080, where squid is running. Squid
> > > should then
> use
> >
> > > a DNS server running on the localhost:53 to DNS a URL like
> > > webserver1.domain.com to 192.168.0.2 and webserver2.domain.com to
> > > 192.168.0.3, and return the http info to the browser on the
> > > internet
>
> > > which requested the info.
> > >
> > > My question is, how can I set my squid to use the localhost DNS
> > > servers, rather than the attbi.com DNS servers listed in netconf?
> >
> > Try this:
> > # TAG: dns_nameservers
> > # Use this if you want to specify a list of DNS name servers
> > # (IP addresses) to use instead of those given in your
> > # /etc/resolv.conf file.
> > #
> > # Example: dns_nameservers 10.0.0.1 192.172.0.4
> > #
> > #Default:
> > # none
> >
> >
> >
> > Adrian
> >
>
Received on Wed Mar 06 2002 - 10:49:31 MST
This archive was generated by hypermail pre-2.1.9 : Tue Dec 09 2003 - 17:06:45 MST