<html>
<head>
<base href="https://bugs.freedesktop.org/" />
</head>
<body>
<p>
<div>
<b><a class="bz_bug_link
bz_status_RESOLVED bz_closed"
title="RESOLVED FIXED - hostnamed should emit PropertyChanged for Hostname property"
href="https://bugs.freedesktop.org/show_bug.cgi?id=83930#c3">Comment # 3</a>
on <a class="bz_bug_link
bz_status_RESOLVED bz_closed"
title="RESOLVED FIXED - hostnamed should emit PropertyChanged for Hostname property"
href="https://bugs.freedesktop.org/show_bug.cgi?id=83930">bug 83930</a>
from <span class="vcard"><a class="email" href="mailto:dh.herrmann@gmail.com" title="David Herrmann <dh.herrmann@gmail.com>"> <span class="fn">David Herrmann</span></a>
</span></b>
<pre>(In reply to <a href="show_bug.cgi?id=83930#c2">comment #2</a>)
<span class="quote">> I only now noticed that gethostname will not always correspond to the
> Hostname property, at least since c779a442 (released with v213)... Should
> hostnamed maybe have one more property EffectiveHostname that is guaranteed
> to have the same value as gethostname?</span >
We never expose systemd/bus APIs if there is already an API to retrieve the
given value. That is, our recommendation is to *always* use gethostname() if
you require the effective hostname of your system.
We enforce this policy in quite a lot places, and so far there hasn't been any
reason to change this.
<span class="quote">> How can things like the hostname be so complicated? :-)</span >
Yeah.. auto-configuration via DHCP makes stuff awfully complicated. What can we
do..</pre>
</div>
</p>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are the QA Contact for the bug.</li>
<li>You are the assignee for the bug.</li>
</ul>
</body>
</html>