Subject Re: [firebird-support] gethostbyname - 11001 Problem
Author Helen Borrie
At 02:32 PM 27/11/2006, you wrote:
>Hello Group,
>
>Windows 2003 Server
>Firebird 1.5.3 SS
>
>I have a couple of entries in Firebird.log like:
>
>MYSERVER (Client) Mon Nov 27 13:47:52 2006
> INET/INET_connect: gethostbyname failed, error code = 11001
>
>Even though I have a record in the hosts file to bypass the DNS lookup.
>
>127.0.0.1 MYSERVER
>
>Any suggestions for where I should start looking?

At a guess, I'd think that those 11001 errors occurred because
something else was already connected/connecting to port 3050 of the
127.0.0.1 IP address using a different hostname (localhost is the
obvious one to look at).

It's OK to use multiple static hostname mappings for the same IP
address but, once one mapping is "live", gethostbyname() won't return
the IP address for a different one.

./heLen