[PATCH 3/3] Fix lookup with DNS search domains when res_init() is used in multi-threaded application.
Bernhard Reutner-Fischer
rep.dot.nop at gmail.com
Fri Dec 20 15:10:26 UTC 2013
On Thu, Apr 11, 2013 at 06:53:35AM +0000, Sørensen, Kenneth wrote:
>
> From 2c80f5fa6cb55ed5b69e2bd74c921af618027015 Mon Sep 17 00:00:00 2001
> From: Kenneth Soerensen <kenneth.sorensen at spectralink.com>
> Date: Wed, 10 Apr 2013 17:10:37 +0200
> Subject: [PATCH 3/3] Fix lookup with DNS search domains when res_init() is
> used in multi-threaded application.
>
> In a multi-threaded application where res_init() was called either
> directly or implicitly, getaddrinfo() and others failed to add the
> DNS search domain to hostnames.
>
> This problem made it not possible to look up a hostname without its
> domain appended.
>
> The problem is caused by res_sync_func() overwriting the configuration
> read by __open_nameservers() immediately after it is read.
>
> The suggested solutin is to disable res_sync_func() while reading name
> server configuration in res_init().
Applied. Thanks!
More information about the uClibc
mailing list