<DIV>Thanks.</DIV>
<DIV>I looked at the kernel/src/inet_config.erl file and find out that </DIV>
<DIV> </DIV>
<DIV> case Type of<BR> unix_sv -> % UnixWare 2.1.2<BR> case inet_db:add_rc_list([{lookup,["native"]}]) of<BR> ok -><BR> true;<BR> {error, Reason}
-><BR> error("can't set lookup to native: ~p", [Reason])<BR> end;<BR> freebsd -> %% we may have to check version (2.2.2)<BR> load_resolv(filename:join(Etc,"host.conf"), host_conf_freebsd);<BR> 'bsd/os' -><BR> load_resolv(filename:join(Etc,"irs.conf"),
host_conf_bsdos);<BR> linux -><BR> load_resolv(filename:join(Etc,"host.conf"),host_conf_linux),</DIV>
<DIV> </DIV>
<DIV>My Gentoo/FreeBSD is using /etc/nsswitch.conf instead of host.conf.</DIV>
<DIV>For linux box, I just add /etc/host.conf file and FreeBSD box, I had to modify the code.</DIV>
<DIV>Now, I have distributed nodes!!</DIV>
<DIV> </DIV>
<DIV>regards,<BR><BR><B><I>Chandrashekhar Mullaparthi <chandrashekhar.mullaparthi@t-mobile.co.uk></I></B> wrote:</DIV>
<BLOCKQUOTE class=replbq style="PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #1010ff 2px solid">The same problem exists on Mac OS X as well. We have this in our <BR>~/.erlang<BR><BR>inet_db:add_rc_list([{lookup, ["native", "file"]}]).<BR><BR>cheers<BR>Chandru<BR><BR>On 9 Mar 2004, at 07:22, SEUNG BONG HAN wrote:<BR><BR>> I tried to setup the distributed node in Gentoo linux<BR>> without success.<BR>> I found out that if I do the inet:gethostbyname(<HOST<BR>> name>), it returned {error, nxdomain}.<BR>> The reason was inet_db:res_option(lookup) returned<BR>> empty list instead of [{res_lookup,[file,dns]}].<BR>><BR>> I setup the nsswitch.conf to lookup the<BR>><BR>> hosts: files dns<BR>> ...<BR>><BR>> Does anybody have same problem that I have before?<BR>> The FreeBSD 5.0 also gives me the same result just my<BR>> Gentoo Linux.<BR>><BR>> regards,<BR>><BR>><BR>><BR>> __________________________________<BR>> Do you
Yahoo!?<BR>> Yahoo! Search - Find what you뭨e looking for faster<BR>> http://search.yahoo.com<BR></BLOCKQUOTE><p><hr SIZE=1>
Do you Yahoo!?<br>
Yahoo! Search - <a href="http://search.yahoo.com/?fr=ad-mailsig-home">Find what you’re looking for faster.</a>