Re: Trouble with getbyhostname()
- From: Unruh <unruh-spam@xxxxxxxxxxxxxx>
- Date: Wed, 26 Mar 2008 20:56:03 GMT
Rick Jones <rick.jones2@xxxxxx> writes:
Jurgen Haan <jurgen@xxxxxxxx> 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...
- Follow-Ups:
- Re: Trouble with getbyhostname()
- From: Rick Jones
- Re: Trouble with getbyhostname()
- References:
- Trouble with getbyhostname()
- From: sam . barker0
- Re: Trouble with getbyhostname()
- From: Jurgen Haan
- Re: Trouble with getbyhostname()
- From: Rick Jones
- Trouble with getbyhostname()
- Prev by Date: Re: resolv.conf, bind9 and unresolvable local address
- Next by Date: Re: lp (lpd) to cups migration
- Previous by thread: Re: Trouble with getbyhostname()
- Next by thread: Re: Trouble with getbyhostname()
- Index(es):