Subject | Re: gethostbyname - 11001 Problem |
---|---|
Author | Adam |
Post date | 2006-11-28T09:36:52Z |
--- In firebird-support@yahoogroups.com, Helen Borrie <helebor@...> wrote:
'localhost:mydb' and 'myserver:mydb' on the same server? I never knew
that (and admit that I never deliberately tried it). This server has a
much higher load than I am used to, (and with 8 cores it gets a lot
done at the same time).
I have changed the connection strings on the relative program and ODBC
setup to match, and will let the group know if the problem continues.
Thanks
Adam
>So you can't have different programs with connection strings
> 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.
'localhost:mydb' and 'myserver:mydb' on the same server? I never knew
that (and admit that I never deliberately tried it). This server has a
much higher load than I am used to, (and with 8 cores it gets a lot
done at the same time).
I have changed the connection strings on the relative program and ODBC
setup to match, and will let the group know if the problem continues.
Thanks
Adam