<div dir="ltr"><br><div class="gmail_extra"><br><br><div class="gmail_quote">On Mon, Aug 4, 2014 at 9:05 PM, Enrico Scholz <span dir="ltr">&lt;<a href="mailto:enrico.scholz@sigma-chemnitz.de" target="_blank">enrico.scholz@sigma-chemnitz.de</a>&gt;</span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="">Sujith H &lt;<a href="mailto:sujith.h-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org">sujith.h-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org</a>&gt; writes:<br>


<br>
&gt; If hostname is not added to /etc/hosts file then rpcinfo command fails<br>
&gt; when hostname is passed as argument.<br>
</div>&gt; ...<br>
<div class="">&gt; root@mx6q:~# rpcinfo -s mx6q<br>
&gt; rpcinfo: can&#39;t contact rpcbind: RPC: (unknown error code)<br>
<br>
</div>Is this really a common/valid use case?  &#39;rpcinfo&#39; is a debug tool and<br>
when you want information about the local host, you can execute<br>
<br>
# rpcinfo -s localhost<br>
<br>
IMHO, when using network related functionality, you have to setup<br>
networking.  This means:<br>
<br>
- setup the hostname; using ${MACHINE} is ambiguous with more than one<br>
  device and the string can contain chars forbidden by DNS (&#39;_&#39;)<br>
<br>
- setup name resolving; this can be done by ordinary DNS, (unambiguous)<br>
  /etc/hosts, mDNS<br>
<br>
<br>
When DNS mapping of ${MACHINE} (or better `hostname`) without working<br>
DNS is really required, &#39;systemd&#39; contains &#39;libnss_myhostname.so&#39; (which<br>
is to be registered in /etc/nsswitch) which returns &#39;127.0.0.2&#39; as a<br>
fallback.<br>
<span class="HOEnZb"><font color="#888888"><br></font></span></blockquote><div><br></div><div>Is it ok to read from /etc/hostname and then have that in the /etc/hosts file, rather than using ${MACHINE}? <br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

<span class="HOEnZb"><font color="#888888">
<br>
Enrico<br>
--<br>
_______________________________________________<br>
Openembedded-core mailing list<br>
<a href="mailto:Openembedded-core@lists.openembedded.org">Openembedded-core@lists.openembedded.org</a><br>
<a href="http://lists.openembedded.org/mailman/listinfo/openembedded-core" target="_blank">http://lists.openembedded.org/mailman/listinfo/openembedded-core</a><br>
</font></span></blockquote></div><br><br clear="all"><br>-- <br>സുജിത് ഹരിദാസന്<br>Bangalore<br>&lt;Project&gt;Contributor to KDE project<br><a href="http://fci.wikia.com/wiki/Anti-DRM-Campaign" target="_blank">http://fci.wikia.com/wiki/Anti-DRM-Campaign</a><br>

&lt;Blog&gt; <a href="http://sujithh.info" target="_blank">http://sujithh.info</a><br>
</div></div>