Hi Ingo,
Ingo van Lil wrote,
When resolving an unqualified host name, the resolver
tries the original
name first before appending the domains from the search list. If a TLD
with the same name exists, the query will succeed (but yield no A record)
and the resolver will return HOST_NOT_FOUND without trying the search
domains.
This patch changes the lookup order for unqualified host names (without
dots) to try the search domains first and the original name last.
Signed-off-by: Ingo van Lil <inguin(a)gmx.de>
---
libc/inet/resolv.c | 12 ++++++++++--
1 file changed, 10 insertions(+), 2 deletions(-)
Applied and pushed,
thx
Waldemar