<div dir="auto"><div>Hi,<div dir="auto"><br><div dir="auto">I cannot contribute to the concrete question, but note that a host can have multiple addresses and can therefore be reachable under multiple host names. Depending on what you try to do, it may matter and you better check that you actually get the name that you expect in your production environment.</div><div dir="auto"><br></div><div dir="auto">Kind regards,</div><div dir="auto">Jakob</div><div dir="auto"><br></div></div><br><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">tim Rowledge <<a href="mailto:tim@rowledge.org">tim@rowledge.org</a>> schrieb am Do., 30. März 2023, 03:14:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">We've had a few discussions about this issue over the years and never really decided on anything more certain than "er, well..."<br>
<br>
There's certainly a bigger discussion around moving to the 'new networking' setting but for this one particular query it seems to me that using the code currently in NetNameResolver class>>#localHostName that gets ignored by the #useOldNetwork option is a good option. That is, <br>
<br>
localHostName<br>
        "Return the local name of this host."<br>
        "NetNameResolver localHostName"<br>
<br>
        | host |<br>
        host := String new: NetNameResolver primHostNameSize.<br>
        NetNameResolver primHostNameResult: host.<br>
        ^host<br>
<br>
returns a value that seems to be helpful, and that is retrieved via the unix function gethostname(), which is used by the hostname command. Are there any problems with the idea of using this?<br>
<br>
tim<br>
--<br>
tim Rowledge; <a href="mailto:tim@rowledge.org" target="_blank" rel="noreferrer">tim@rowledge.org</a>; <a href="http://www.rowledge.org/tim" rel="noreferrer noreferrer" target="_blank">http://www.rowledge.org/tim</a><br>
Useful random insult:- Mouth in gear, brain in neutral.<br>
<br>
<br>
<br>
<br>
</blockquote></div></div></div>