I'm not aware of a UNIX variant that determines the hostname of the server by finding the first hostname listed in the hosts file. On AIX, at least, the hostname is stored in the ODM. It IS true that it may resolve the hostname to an invalid IP, or conversely, resolve the IP address of a particular interface to the wrong name if it's listed in the hosts file, but it's not true that the hostname is automatically set to the first hostname found in /etc/hosts.<br>
<br>Eric<br><br><div class="gmail_quote">On Sat, Jul 24, 2010 at 3:45 AM, Helge Blischke <span dir="ltr"><<a href="mailto:h.blischke@acm.org">h.blischke@acm.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div class="im"><br>
</div>Well, obviously CUPS replaces host name alias names with the official host<br>
name; that is the first name in the /etc/hosts line.<br>
<font color="#888888"><br></font></blockquote></div><br>