#599488 libc6: NSS hosts fails to resolve names specified relatively in /etc/hosts but absolute in library call

Package:
libc6
Source:
glibc
Description:
GNU C Library: Shared libraries
Submitter:
Christoph Anton Mitterer
Date:
2010-10-07 23:21:07 UTC
Severity:
normal
#599488#5
Date:
2010-10-07 23:18:36 UTC
From:
To:
Hi.


It seems that if the resolver falls back (at some point) to using /etc/hosts
it does differ between absolutely and relatively specified domain names.

Typically one has relative domain names in /etc/hosts, for example:
1.2.3.4		test.domain.example

If one now pings the relative domain name:
# ping test.domain.example
this works.

If one however pings the absolute domain name (note the "." in the end):
## ping test.domain.example.
the address cannot longer be resolved.


Cheers,
Chris.