Am 20.06.2012 um 18:39 schrieb Tommi Virtanen <[email protected]>:

> On Wed, Jun 20, 2012 at 2:20 AM, Stefan Priebe - Profihost AG
> <[email protected]> wrote:
>>> What does hostname | cut -d . -f 1 say?
>> 
>> It says ssdstor000i as the machine defaults to it's public IP.
>> 
>> Whouldn't it make sense to go through all aliases set in /etc/hosts which
>> point to a local IP?
> 
> Actually, the short hostname of the machine is completely unrelated to
> what IP addresses etc it has. The hostname is a configurable string.
> We treat it as such -- it's just expected to be a unique identifier
> for the host.
> 
> There's no nice, reliable way to look up aliases that point to a local
> IP. /etc/hosts is meant to be accessed through a library that also
> uses DNS, and you really don't want to tie your daemon startup to DNS
> availability and functioning.

Correct. So i should just change the /etc/hostname to the name that points to 
the internal ip via hosts file?--
To unsubscribe from this list: send the line "unsubscribe ceph-devel" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to