On 2005.01.23, Dan Chak <[EMAIL PROTECTED]> wrote:
> Whenever I start up AOLServer on an IP that doesn't have a DNS entry,
> it takes a long time for the server to get going because of the time
> for the failed DNS lookup.  Is there some way to disable this check?

Not really.  If you have root access to the host, you could (?) put the
IP address in your /etc/hosts file so that the resolver can find it.

> I am currently setting both the Address and hostname section in the
> config file to the IP address itself.
>
> This is the message I get when I start the server:
>
> [23/Jan/2005:20:12:35][4865.2684396012][-main-] Error: dns:
> getaddrinfo failed: No address associated with nodename

I'm guessing this is happening in nsd/nsconf.c in NsInitInfo().  It gets
your hostname using gethostname() then tries to resolve it to an IP
address using Ns_GetAddrByHost().  I believe this code was added as a
"fix" for SF Bug #868362:

    http://aolserver.com/sf/bug/868362

Of course, the side-effect is that if your hostname isn't resolvable,
it'll cause a delay -- before, it'd cause a fatal error.  Not sure which
is worse ... :-)

-- Dossy

--
Dossy Shiobara                       mail: [EMAIL PROTECTED]
Panoptic Computer Network             web: http://www.panoptic.com/
  "He realized the fastest way to change is to laugh at your own
    folly -- then you can let go and quickly move on." (p. 70)


--
AOLserver - http://www.aolserver.com/

To Remove yourself from this list, simply send an email to <[EMAIL PROTECTED]> 
with the
body of "SIGNOFF AOLSERVER" in the email message. You can leave the Subject: 
field of your email blank.

Reply via email to