
Nameresolver broken in initrd sysrcs 2.0.1beta3
like written in this post the hostname resolving dont work in initrd enviremont (busybox).
viewtopic.php?f=18&p=11484#p11484After some traces i think its not the busybox configuration but a linked lib. Im not sure what is static linked because ldd says " not a dynamic executable" but busybox loads libs.
The failing function is getaddrinfo().
Here is the end of a busybox strace running in the SYSRCD enviremont (dns working). Before this, busybox tries to get data from nscd. it looks there is no difference betwen loading initrd or SYSRCD libs.
Code:
open("/lib/libnss_dns.so.2", O_RDONLY) = 3
read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\300\v\0\0004\0\0\0"..., 512) = 512
fstat64(3, {st_mode=S_IFREG|0755, st_size=21896, ...}) = 0
mmap2(NULL, 20612, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x4ff000
mmap2(0x503000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x4) = 0x503000
close(3) = 0
open("/lib/libresolv.so.2", O_RDONLY) = 3
read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0@&\0\0004\0\0\0"..., 512) = 512
fstat64(3, {st_mode=S_IFREG|0755, st_size=71296, ...}) = 0
mmap2(NULL, 84040, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x570000
mmap2(0x581000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x10) = 0x581000
mmap2(0x583000, 6216, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x583000
close(3) = 0
mprotect(0x581000, 4096, PROT_READ) = 0
mprotect(0x503000, 4096, PROT_READ) = 0
munmap(0xf7707000, 48619) = 0
write(2, "ping: bad address 'fritz.box'\n", 30ping: bad address 'fritz.box'
) = 30
exit_group(1) = ?