[CODE?]GetHostByAddr() vs. Slowns

From: Rasmus 'Con' Ronlev (raro94ab@hp4.econ.cbs.dk)
Date: 01/12/97

[NOTE: Message crossposted to the 'Moderated CircleMUD List']


Recently I've had some problems with 'lag' on the mud, at least thats what
I thought it was, till I traced the problem down to the Gethostbyaddr()
call in comm.c. The interesting part is, that the mud only seems to 'hang'
in the systemcall on a certain domain/ISP (208.132.119.*). It seems to me,
that disabling the lookup of hostanmes because of just one domain name
causing trouble is a little overkill (not to mention causing problems if
banned sites allso have to be banned by IP ads well as hostname.. etc.).

What I was wondering about was how to solve the problem with the mud
beeing 'idled' so to speak, when it tried to look up this certain site.

First off I was wondering if ther eis an obvious and easy slution to stop
looking up certain domains, or if there is some sort of 'fixing' i could
do on my server, like the DNS service at the ISP I run my mud at ?

Seccondly I was wondering if anyone knew where I can get any
specifications, like an RFC about how to contact DNS-systems, so I could
build a 'hostname' lookup procedure similar to the one that the ident
patch for circle at the ftp site offers, and thus  enabeling the
possibility of 'lag' in the lookup, that doesn't affect the mud.

If I missed any other obvious, or not that obviois solutions, please post
them, as I really want to find the best way to solve the problem (perhaps
even make some code public *wowo* :) Ofcourse I'd only do that if what I
made proves to work (better) than what circlemud offers at present.

Oh yeah, and just because I used the name RFC, it doesn't mean I'm a
Unix/OS-guru *cackle* So, please try to respond in plain english if you
can :)

Thanks in advance,

     Rasmus Rønlev DOEK'94      WWW: http://www.econ.cbs.dk/people/raro94ab
     Student instructor         MUD: exiled.mud.circlemud.org 5000
       Student, B.Sc in Computer Science and Business Administration.

| Ensure that you have read the CircleMUD Mailing List FAQ: |
|   http://cspo.queensu.ca/~fletcher/Circle/list_faq.html   |

This archive was generated by hypermail 2b30 : 12/18/00 PST