[Nix-dev] name resolution in nix packages not working
Eelco Dolstra
eelco at cs.uu.nl
Fri Sep 14 14:42:22 CEST 2007
Tobias Hammerschmidt wrote:
> Eelco Dolstra schrieb:
>> Tobias Hammerschmidt wrote:
>>> Wouter schrieb:
>>>> Is this just restricted to the packages you installed (can you ping
>>>> www.google.com)?
>>>>
>>> Yes it is. All packages from debian which do need name resolution are
>>> working without problems.
>>
>> Very strange. Do you have the "nscd" daemon running on your system,
>> and if so,
>> what version of Glibc does your Debian install use? And if nscd is
>> running,
>> could you try if it works without nscd?
> "nscd" is not running -- "ps ax | grep nscd" gives me an empty list.
> Debian Etch ships with glibc version 2.3.6.
Hm. Could you install something like curl from Nixpkgs and do an strace? E.g.
$ strace curl http://nix.cs.uu.nl
and see if it gets stuck somewhere? Also, it should make at least the following
syscalls:
open("/etc/nsswitch.conf", O_RDONLY) = 3
open("/etc/resolv.conf", O_RDONLY) = 3
open("/nix/store/brba7k7qrpk7r8qnha6hf1pr46rkmvzc-glibc-2.5/lib/libnss_files.so.2",
O_RDONLY) = 3
open("/etc/hosts", O_RDONLY) = 3
open("/nix/store/brba7k7qrpk7r8qnha6hf1pr46rkmvzc-glibc-2.5/lib/libnss_dns.so.2",
O_RDONLY) = 3
open("/nix/store/brba7k7qrpk7r8qnha6hf1pr46rkmvzc-glibc-2.5/lib/libresolv.so.2",
O_RDONLY) = 3
connect(3, {sa_family=AF_INET, sin_port=htons(53),
sin_addr=inet_addr("131.211.80.32")}, 28) = 0
(where 131.211.80.32 is the nameserver)
--
Eelco Dolstra | http://www.cs.uu.nl/~eelco
More information about the nix-dev
mailing list