<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"><<a href="mailto:enrico.scholz@sigma-chemnitz.de" target="_blank">enrico.scholz@sigma-chemnitz.de</a>></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 <<a href="mailto:sujith.h-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org">sujith.h-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org</a>> writes:<br>
<br>
> If hostname is not added to /etc/hosts file then rpcinfo command fails<br>
> when hostname is passed as argument.<br>
</div>> ...<br>
<div class="">> root@mx6q:~# rpcinfo -s mx6q<br>
> rpcinfo: can't contact rpcbind: RPC: (unknown error code)<br>
<br>
</div>Is this really a common/valid use case? 'rpcinfo' 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 ('_')<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, 'systemd' contains 'libnss_myhostname.so' (which<br>
is to be registered in /etc/nsswitch) which returns '127.0.0.2' 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><Project>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>
<Blog> <a href="http://sujithh.info" target="_blank">http://sujithh.info</a><br>
</div></div>