distributed node in linux
Wed Mar 10 09:49:08 CET 2004
Tornkvist, Torbjorn [SVEAV:AA26:INTMAIL] wrote:
> I belive that Magnus Fröberg did send out a patch for this
> problem many months ago. Don't know what happend with
> it though...
ok, "Re: problem with gethostbyname/1" is quoted below.
Magnus Fröberg wrote:
> Raimo Niskanen wrote:
>> I have never come across a Gentoo Linux box before. Could you dump the
>> following files as well as the output from os:type() and send to me?
> we have done a fix to inet_config.erl for our Gentoo users.
> It seems like Gentoo does not have the /etc/host.conf file so
> we added usage of /etc/nsswitch.conf as well for 'linux' while
> configuring the inet_db.
> The diff below is against the R9C-0 version of inet_config.erl:
> Index: lib/kernel/src/inet_config.erl
> RCS file: /home/share/erlang/cvsroot/otp/lib/kernel/src/inet_config.erl,v
> retrieving revision 220.127.116.11
> retrieving revision 1.7
> diff -u -r18.104.22.168 -r1.7
> --- lib/kernel/src/inet_config.erl 2 Sep 2003 13:34:18 -0000
> +++ lib/kernel/src/inet_config.erl 3 Sep 2003 13:53:57 -0000 1.7
> @@ -82,8 +82,13 @@
> 'bsd/os' ->
> linux ->
> + case
> nux) of
> + ok ->
> + ok;
> + _Other ->
> load_resolv(filename:join(Etc,"nsswitch.conf"), nssw
> + end,
> % It may be the case that the domain name was not set
> % because the hostname was short. But we can now
> look it
> % up and get the long name and the domain name from it.
More information about the erlang-questions