7.3 + kqueue + apache/php + DNS lookup problem
Jeremy Chadwick
freebsd at jdc.parodius.com
Sun Oct 2 09:00:28 UTC 2011
On Sun, Oct 02, 2011 at 10:18:30AM +0200, Damien Fleuriot wrote:
> On 1 October 2011 03:18, Doug Barton <dougb at freebsd.org> wrote:
> > It's a php module doing a lookup for the hostname of the back-end mysql
> > server.
> >
> >> Are the delays always 3 seconds?
> >
> > Pretty much.
> >
> >> If so, that almost sounds like a timeout of some kind.
> >
> > That was my first thought, but the answer always comes eventually.
> >
> > To answer Chuck's questions, no threading is involved, and it's not
> > apache doing the lookups.
> >
> >
> > Doug
> >
>
> Check your bind/unbound logs to ensure the queries are actually
> successful on their first try.
>
> Is your DNS using forwarders ? views ?
How would this explain 100% quick/reliable lookups when done from tools
like nslookup and host? Same box and same resolver (127.0.0.1:53), yet
different behaviour (nslookup/host vs. PHP).
--
| Jeremy Chadwick jdc at parodius.com |
| Parodius Networking http://www.parodius.com/ |
| UNIX Systems Administrator Mountain View, CA, US |
| Making life hard for others since 1977. PGP 4BD6C0CB |
More information about the freebsd-stable
mailing list