Subject Re: [firebird-support] INET/INET_connect: gethostbyname failed, error code = 2
Author Helen Borrie
At 04:13 PM 26/06/2008, you wrote:
>I've got a lot of following error messages in my firebird.log file:
>localhost.localdomain Fri Jun 13 09:04:05 2008
> INET/INET_connect: gethostbyname failed, error code = 2
>
>localhost.localdomain Fri Jun 13 09:04:51 2008
> INET/INET_connect: gethostbyname failed, error code = 2
>
>localhost.localdomain Fri Jun 13 09:04:53 2008
> INET/INET_connect: gethostbyname failed, error code = 2
>
>
>The gethostbyname function retrieves host information corresponding to
>a host name from a host database.
>
>Is that problem connected to the Firebird server or Firebird client
>machine ? Should I change configuration of DNS server or edit host
>file (question what should I change there ?) Why do does those errors
>occurs so often ?
>
>It would be great if you can help me.

You're not telling us much here. What happens when you ping the server's hostname from a network client?

Easy fix: Make an entry in /etc/hosts on the host machine and on the clients: then you don't have to worry about DNS failing or DHCP stealing the IP address.

n.n.n.n myhostname # node name of the host server where Firebird is

Make sure it's the same IP address you get back from a remote ping.

./heLen