[cups.general] CUPS web interface generating absolute URLs for printers with "loopback" addresses

Helge Blischke h.blischke at acm.org
Sat Jul 24 11:57:57 PDT 2010


Eric Michaelis wrote:

> 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.
> 
> Eric
> 
> On Sat, Jul 24, 2010 at 3:45 AM, Helge Blischke <h.blischke at acm.org>
> wrote:
> 
>>
>> Well, obviously CUPS replaces host name alias names with the official
>> host name; that is the first name in the /etc/hosts line.
>>
>>

In addition, if the scheduler has identified the address 127.0.0.1 of ::1, 
i.e. the loopback interface, it sets the hostname to the literal string 
"localhost", as a quick look through the sources (1.4.4) reveals.

Helge





More information about the cups mailing list