On 20/04/2012 9:59 p.m., anita wrote:
Hi All,
I am using squid 3.1.16 version.
I am looking into extending the DNS feature to suit my application.
Please explain? what type of app do you have that requires anything
outside of regular HTTP handling?
HTTP URLs contain a hostname or IP. DNS is needed sometimes to convert
these to IPs.
TCP connections used by HTTP are made with IPs. DNS is sometimes needed
to locate the PTR FQDN for logging or access control purposes.
Squid already does these DNS lookups *if* needed.
I have a query here regarding the basic DNS feature in Squid.
I am using internal dns client& localdomain as my dns server.
My Setup:
1 Child squid (sitting in machine 1) -> 1 Parent Squid (sitting in machine
2) -> Apache Server (sitting in machine 2)
There are no siblings.
I am running a browser client, wget in this case, to fetch a URL that is not
present in both child& parent cache.
In this case:
1. Does the Child Squid do any dns lookup of the link requested by wget
before sending it to the parent squid when it is a MISS? Or is it done only
by the parent when the child declares it as a miss?
Each Squid does the DNS lookups it needs to perform your configured
handling.
The child Squid MAY perform DNS lookups to locate the parent Squid.
The parent Squid MAY to DNS lookups to identify the URL host to fetch from.
Amos