Hello Renim,
You're welcome. I really want to understand what's going wrong.
As of my understanding, the resolver first queries nscd through a
socket, however this latter is not bound into the guest rootfs.
Please could you try:
$ proot -R centos-5-tar -b /var/run/nscd/socket wget
google.com
I think this will *not* work either since -- as of my understanding --
nscd is only a cache for "/etc/hosts" and "/etc/resolv.conf". however
I'd like to be sure the missing socket does not introduce an
unexpected behavior.
Then, the resolver parses "/etc/nsswitch.conf". This files specifies
to query the "files" database (ie. "/etc/hosts"), then the
"mdns4_minimal" database. I have no clue how this latter works, so
I'll try to get some documentation about this. In the mean time,
could you please send me the output of:
$ proot -v 2 wget
proot.me
(guest rootfs == host rootfs, to understand where the behavior differ
unexpectedly)
Cédric.