Re: gethostbyname() and resolv.conf updates

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 06/20/2010 04:41 AM, Nicolas Chauvet wrote:
> 2010/6/17 Bernie Innocenti <bernie@xxxxxxxxxxx>:
>> Hello,
>>
>> xchat in Fedora needs to be restarted after switching to a different
>> nameserver or it fails to resolve.
>>
>> The xchat developers say that all xchat does is call gethostbyname(). A
> There was a topic 3 years ago  about replacing gethostby* functions by
> getaddrinfo
> Is this still relevant?

You definitely still want to replace gethostbyname with getaddrinfo,
because gethostbyname can't handle IPv6 addresses. But that's not
relevant to this particular problem (noticing resolv.conf updates)
because both functions use the same internal glibc methods, they just
package the results differently.

-- Dan
-- 
devel mailing list
devel@xxxxxxxxxxxxxxxxxxxxxxx
https://admin.fedoraproject.org/mailman/listinfo/devel


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Fedora Announce]     [Fedora Kernel]     [Fedora Testing]     [Fedora Formulas]     [Fedora PHP Devel]     [Kernel Development]     [Fedora Legacy]     [Fedora Maintainers]     [Fedora Desktop]     [PAM]     [Red Hat Development]     [Gimp]     [Yosemite News]
  Powered by Linux