Group: comp.os.linux.networking
From: Unruh
Date: Wednesday, March 26, 2008 3:56 PM
Subject: Re: Trouble with getbyhostname()

Rick Jones writes:

>Jurgen Haan wrote:
>> Uhm... not being a programmer, or anything, but isn't gethostbyname
>> used for resolving names into adresses and not the other way around?

>Yes, but for the last decade or so just about everyone's
>gethostbyname() is willing to take-in an IPv4 address as a
>dotted-decimal string.

>However, for the last, oh five years or so, people should be migrating
>to getaddrinfo() rather than gethostbyname()... :)

Which unfortunately has ( or maybe had) a problem in that it would not use
the local hosts file but went out to the dns server for everything.



>rick jones
>--
>denial, anger, bargaining, depression, acceptance, rebirth...
> where do you want to be today?
>these opinions are mine, all mine; HP might not want them anyway... :)
>feel free to post, OR email to rick.jones2 in hp.com but NOT BOTH...

Safety Articles | Usenet Groups | Usenet News | Bluegrass