When ServerName not specified, "localhost" may be used but shouldn't be #1076

Closed
michaelrsweet opened this Issue Feb 8, 2005 · 4 comments

Comments

Projects
None yet
1 participant
Collaborator

michaelrsweet commented Feb 8, 2005

Version: 1.1.22rc1
CUPS.org User: twaugh.redhat

When there is no ServerName directive in cupsd.conf, CUPS may use "localhost.localdomain" in some instances, which is not useful.

One instance where this can happen is when using a DHCP server that does not assign hostnames, only IP addresses.

Collaborator

michaelrsweet commented Feb 8, 2005

CUPS.org User: mike

What would you suggest as an alternative? You can already have it use the IP address by specifying "BrowseAddress @Local", or you can put the IP address in the ServerName...

The main issue with using an IP address for local accesses is that the local authentication may not work (since you wouldn't be connecting over the loopback interface...)

Collaborator

michaelrsweet commented Feb 8, 2005

CUPS.org User: twaugh.redhat

Maybe there should be some way to arrange for local queues to be advertised using the IP address in browse packets, but localhost when queried locally.

The original bug report is here:
https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=147005

Collaborator

michaelrsweet commented Feb 12, 2005

CUPS.org User: mike

That's basically what "BrowseAddress @Local" does; the ServerName is returned in the IPP requests, but the IP is advertised in the browse packets.

Collaborator

michaelrsweet commented Sep 18, 2005

CUPS.org User: mike

Fixed in Subversion repository.

michaelrsweet added this to the Stable milestone Mar 17, 2016

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment