6 Jun 2003 13:09
resolver ... again
Klacke <klacke <at> bluetail.com>
2003-06-06 11:09:35 GMT
2003-06-06 11:09:35 GMT
Howdy, The code in inet_config.erl is not quite right. On linux, the code in the inet_config:init/0 reads /etc/hosts.conf (only) The glibc resolver reads both the /etc/host.conf aswell as /etc/nsswitch.conf A very old system [root <at> rall /root]# cat /etc/redhat-release Red Hat Linux release 6.2 (Zoot) [root <at> rall /root]# strace ping -c 1 www.erlang.org 2>&1 | grep '/etc/.*.conf' open("/etc/resolv.conf", O_RDONLY) = 4 open("/etc/nsswitch.conf", O_RDONLY) = 4 read(4, "#\n# /etc/nsswitch.conf\n#\n# An ex"..., 4096) = 1767 open("/etc/host.conf", O_RDONLY) = 4 Slightly newer .... # cat /etc/redhat-release Red Hat Linux release 7.3 (Valhalla) # strace ping -c 1 www.erlang.org 2>&1 | grep '/etc/.*.conf' open("/etc/resolv.conf", O_RDONLY) = 3 open("/etc/nsswitch.conf", O_RDONLY) = 3 read(3, "#\n# /etc/nsswitch.conf\n#\n# An ex"..., 4096) = 1682 open("/etc/host.conf", O_RDONLY) = 3(Continue reading)
RSS Feed