Re: Best way to reduce load on DNS server??

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance

From: Jeff Cochran (jcochran.nospam_at_naplesgov.com)
Date: 04/09/04


Date: Fri, 09 Apr 2004 03:52:53 GMT

On Wed, 07 Apr 2004 09:43:03 -0400, Iain Simpson
<dummyaddress@sympatico.ca> wrote:

>On Wed, 07 Apr 2004 13:06:58 GMT, jcochran.nospam@naplesgov.com (Jeff
>Cochran) wrote:
>
>>You always use the same address. Once you look it up the first time,
>>it's cached and you don't look it up again until the TTL expires or
>>your cache flushes. Whether you look it up in DNS or Hosts makes no
>>difference here.
>>
>>Hosts will be queried before DNS. If the name is resolved there,
>>there is no DNS request made.
>
>Thanks for your replies Jeff.
>
>This makes sense on one level, but not on another.
>
>I use a piece of software called Privoxy to refresh the relevant
>section of the webpage every second. Privoxy creates a log file giving
>details of each request made. Generally that stream involves requests
>to refresh.betfair.com. As you can see these requests are being
>successful but suddenly a request to the same domain
>(refresh.betfair.com) fails with a "could not resolve hostname" error.
>>From what you have said, that would suggest the TTL for
>refresh.betfair.com must be zero, i.e. a DNS lookup is required every
>request? Otherwise how could it fail having been cached? If the TTL is
>zero, would a hosts entry for refresh.betfair.com be a big help in
>reducing the requests to the DNS server?

Just because it's cached doesn't mean something won't prevent it from
reading the cache. Nor does it prevent another type of error that
your app reports as being unable to resolve the name.

Jeff



Relevant Pages

  • Re: Basic, yet detailed, Tor questions.
    ... I think I need to find a different program to use than Privoxy. ... >> Don't suppose anyone's written a basic DNS proxy to work alongside Tor? ... forward request to Tor via socks4a, ...
    (alt.privacy)
  • Re: DNS-AD integration
    ... I have also set up AD-integrated DNS in both of these servers. ... first domain controller ip address. ... Also, the GC service is running on one of the DCs, which is a required service. ...
    (microsoft.public.windows.server.dns)
  • Re: DNS response record format?
    ... What language am I using? ... In my research I discovered the DNS RobinRobin flag that I made ... > into sections and parse the request out of it. ... >> server that is used to resolve just a few special names in our domain. ...
    (microsoft.public.windows.server.dns)
  • Re: DNS-AD integration
    ... I have also set up AD-integrated DNS in both of these servers. ... first domain controller ip address. ... It will use DNS Round Robin to resolve it. ...
    (microsoft.public.windows.server.dns)
  • Re: bind() udp behavior 2.6.8.1
    ... thru the firewall. ... It should be using a new ID after a successful dns ... I understand this has deviated from the topic of the linux kernel so we ... >> way to distinguish them (same A record request). ...
    (Linux-Kernel)