You are here: Re: Is gethostbyaddr() slow? « PHP « IT news, forums, messages
Re: Is gethostbyaddr() slow?

Posted by kalinga on 08/04/05 19:04

i missed another keypoint..

if you are running unix/linux server, you need to have a properly
setup resolv.conf

or if you experience a slowness while you quering your own domains,
check whether you DNS servers are providing "authoritative" answers to
your domains.


~viraj.

On 8/4/05, kalinga <kalinga@gmail.com> wrote:
> On 8/4/05, kalinga <kalinga@gmail.com> wrote:
> > On 8/4/05, Kristen G. Thorson <kthorson@allegroconsultants.com> wrote:
> > > I can say from personal experience that gethostbyaddr() and
> > > gethostbyname() can seem almost randomly slow, depending on machine, OS,
>
> > > software, who knows. I'm not smart enough to figure out the reason why
>
> > > it can vary so much on machines with nearly the same configuration, but
>
> > > I can tell you that it works perfectly fast most of the time. Then
> > > there's that other 5% where something makes it slow as molasses.
> > >
> > > I have two machines that are so similar it's not funny, but
> > > gethostbyname() takes 1/10 s on one, and 5 s on the other. I have yet
> > > to figure out what's the difference between them that causing this.
>
> if you are quering a external host, the bad network conditions may
> cause delay in results.
>
> if your server is connected to a heavily loaded hub/ cheap switch, or
> the target hosts DNS servers are poorly configured/ slow in responce
> it adds further delay to your result.
>
> try dig/ nslookup on your server for the target hostname/address, you
> may experience the same delay as with the php function.
>
>
> ~viraj.
>
> > >
> > >
> > > kgt
> > >
> > >
> > >
> > > Dotan Cohen wrote:
> > >
> > > >Hi all, I just discovered the gethostbyaddr() function. By reading the
> > > >user contributed notes, I get the impression that either this function
> > > >may cause performance problems, or a user-contributed function based
> > > >upon it may be slow. So, is gethostbyaddr() slow? Is it dangerous?
> > > >Thanks!
> > > >
> > > >Dotan Cohen
> > > >http://lyricslist.com/lyrics/artist_albums/56/bangles.php
> > > >The Bangles Song Lyrics
> > > >
> > > >
> > > >
> > >
> > > --
> > > PHP General Mailing List (http://www.php.net/)
> > > To unsubscribe, visit: http://www.php.net/unsub.php
> > >
> > >
> >
>

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация