<div dir="ltr">When executed following command from erl shell all works as expected<br>





<p class="inbox-inbox-p1"><font color="#0000ff"><span class="inbox-inbox-s1">1> inet_res:nslookup('<a href="http://example.org">example.org</a>','in','a').<br></span>{ok,{dns_rec,{dns_header,2,true,query,false,false,true,true,<br><span class="inbox-inbox-Apple-converted-space">                         </span>false,0},<br><span class="inbox-inbox-Apple-converted-space">             </span>[{dns_query,"<a href="http://example.org">example.org</a>",a,in}],<br><span class="inbox-inbox-Apple-converted-space">             </span>[{dns_rr,"<a href="http://example.org">example.org</a>",a,in,0,86400,<br><span class="inbox-inbox-Apple-converted-space">                      </span>{93,184,216,34},<br><span class="inbox-inbox-Apple-converted-space">                      </span>undefined,[],false}],<br><span class="inbox-inbox-Apple-converted-space">             </span>[{dns_rr,"<a href="http://example.org">example.org</a>",ns,in,0,86399,"<a href="http://a.iana-servers.net">a.iana-servers.net</a>",<br><span class="inbox-inbox-Apple-converted-space">                      </span>undefined,[],false},<br><span class="inbox-inbox-Apple-converted-space">              </span>{dns_rr,"<a href="http://example.org">example.org</a>",ns,in,0,86399,"<a href="http://b.iana-servers.net">b.iana-servers.net</a>",<br><span class="inbox-inbox-Apple-converted-space">                      </span>undefined,[],false}],<br><span class="inbox-inbox-Apple-converted-space">             </span>[{dns_rr,"<a href="http://a.iana-servers.net">a.iana-servers.net</a>",a,in,0,172799,<br><span class="inbox-inbox-Apple-converted-space">                      </span>{199,43,135,53},<br><span class="inbox-inbox-Apple-converted-space">                      </span>undefined,[],false},<br><span class="inbox-inbox-Apple-converted-space">              </span>{dns_rr,"<a href="http://a.iana-servers.net">a.iana-servers.net</a>",aaaa,in,0,172799,<br><span class="inbox-inbox-Apple-converted-space">                      </span>{8193,1280,143,0,0,0,0,83},<br><span class="inbox-inbox-Apple-converted-space">                      </span>undefined,[],false},<br><span class="inbox-inbox-Apple-converted-space">              </span>{dns_rr,"<a href="http://b.iana-servers.net">b.iana-servers.net</a>",a,in,0,172799,<br><span class="inbox-inbox-Apple-converted-space">                      </span>{199,43,133,53},<br><span class="inbox-inbox-Apple-converted-space">                      </span>undefined,[],false},<br><span class="inbox-inbox-Apple-converted-space">              </span>{dns_rr,"<a href="http://b.iana-servers.net">b.iana-servers.net</a>",aaaa,in,0,172799,<br><span class="inbox-inbox-Apple-converted-space">                      </span>{8193,1280,141,0,0,0,0,83},<br><span class="inbox-inbox-Apple-converted-space">                      </span>undefined,[],false}]}}</font></p><div><br>But when i try executed following command from bash i got error</div>





<p class="inbox-inbox-p1"><font color="#0000ff"><span class="inbox-inbox-s1">[root@ns2.rkn ~]# erl -noshell -s inet_res nslookup '<a href="http://example.org">example.org</a>' 'in' 'a'<br></span>{"init terminating in do_boot",{undef,[{inet_res,nslookup,[['<a href="http://example.org">example.org</a>',in,a]],[]},{init,start_it,1,[]},{init,start_em,1,[]}]}}<br>init terminating in do_boot ()<br><br>Crash dump is being written to: erl_crash.dump...done</font></p><p class="inbox-inbox-p2"><span class="inbox-inbox-s1"></span></p><div>Why it take place?</div></div>