[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [cobalt-users] Apache DNS lookups
- Subject: Re: [cobalt-users] Apache DNS lookups
- From: "Jelmer Jellema" <cobalt@xxxxxxxxxxxxxxx>
- Date: Wed Feb 13 03:19:01 2002
- Organization: Spin in het Web (www.spininhetweb.nl)
- List-id: Mailing list for users to share thoughts on Cobalt products. <cobalt-users.list.cobalt.com>
Hi,
Related to this: I tried to find a way to let webalizer do the DNS lookups,
but the only thing I found was a script that turned the first field in every
log line into a looked-up name. On cobalts this should be the *second*
field, so I would have had to rewrite the script. I will one day, but for
now I just turned on DNS-lookups by apache.
Question: Reading this thread I get the impression there is a simple way,
like a config-directive, to tell webalizer to do DNS lookups. Is this true?
Jelmer
----- Original Message -----
From: "Andy Brown" <andy.brown@xxxxxxxxxxxxx>
To: <cobalt-users@xxxxxxxxxxxxxxx>
Sent: Wednesday, February 13, 2002 10:21 AM
Subject: RE: [cobalt-users] Apache DNS lookups
>
> > Hi All,
> >
> > I'm running webalizer with DNS lookups on the web.log files.
> > The DNS lookups take a long time (on average 150
> > address/min). What implications would it have to switch on
> > DNS lookups for Apache?
> > IMO this would spread the load of doing the lookups or am I wrong?
> >
> > Thanks,
> > Edwin
>
>
> Hi Edwin,
> I would recommend leaving your logs DNS work to be handled by Webalizer.
> The reason is because webalizer is an off-line package, i.e. it doesn't
> actually push data directly to site visitors, it simply runs, does its
> work and writes out html that can be viewed later.
>
> Therefore it doesn't impact upon when people actually look at their log
> files/web sites. However, turning dns lookups ON in Apache DOES cause a
> slow-down, because apache has to deal with the DNS lookup, wait for the
> reply then log it. This can cause connections to view any web-page to
> slow down which is definitely undesirable.
>
> As you mentioned spreading the work-load, it wouldn't achieve this as it
> would concentrate the load onto Apache, then webalizer would have an
> easy life since it wouldn't have to do any DNS look-ups.
>
> One minor thing you could check, and that is what DNS server you're
> using in the /etc/resolv.conf and see if you can find one closer/faster
> to use if you think the DNS is a problem, although the timings you say
> seem pretty speedy to me.
>
> Regards,
> andy@xxxxxxxxxxxxxxxxxxxxx
> http://ineedlinux.info/
>
> _______________________________________________
> cobalt-users mailing list
> cobalt-users@xxxxxxxxxxxxxxx
> To Subscribe or Unsubscribe, please go to:
> http://list.cobalt.com/mailman/listinfo/cobalt-users
>