#160581 rlpr: rlpr defaults to $(hostname) rather than localhost

Package:
rlpr
Source:
rlpr
Description:
A utility for lpd printing without using /etc/printcap
Submitter:
Date:
2005-07-18 03:56:52 UTC
Severity:
normal
#160581#5
Date:
2002-09-11 20:49:31 UTC
From:
To:
If I have an /etc/printcap that looks sort of like this:

	lp:my-printer-name

and I don't have any specific rlpr configuration, then rlpr properly
defaults to lp, but it uses lp@$(hostname) rather than lp@localhost.

Unfortunately, it then tries to DNS-resolve $(hostname), which didn't happen
to work in my case, since it wasn't in /etc/hosts and I didn't have a DNS
server set.

I think it should default to either @localhost or @127.0.0.1, since everyone
has localhost in /etc/hosts anyway and it's always 127.0.0.1

Thanks,

Avery

#160581#8
Date:
2002-09-16 13:15:54 UTC
From:
To:
I am forwarding this feature request to the upstream author for
consideration.

- Brian
------- Forwarded Message From: apenwarr@nit.ca Subject: Bug#160581: rlpr: rlpr defaults to $(hostname) rather than localhost Date: Wed, 11 Sep 2002 16:49:31 -0400 Package: rlpr Version: 2.02-7 Severity: normal If I have an /etc/printcap that looks sort of like this: lp:my-printer-name and I don't have any specific rlpr configuration, then rlpr properly defaults to lp, but it uses lp@$(hostname) rather than lp@localhost. Unfortunately, it then tries to DNS-resolve $(hostname), which didn't happen to work in my case, since it wasn't in /etc/hosts and I didn't have a DNS server set. I think it should default to either @localhost or @127.0.0.1, since everyone has localhost in /etc/hosts anyway and it's always 127.0.0.1 Thanks, Avery
------- End of Forwarded Message
#160581#9
Date:
2002-09-18 04:28:01 UTC
From:
To:
hi folks,


 > If I have an /etc/printcap that looks sort of like this:
 >
 > 	lp:my-printer-name
 >
 > and I don't have any specific rlpr configuration, then rlpr properly
 > defaults to lp, but it uses lp@$(hostname) rather than lp@localhost.
 >
 > Unfortunately, it then tries to DNS-resolve $(hostname), which didn't happen
 > to work in my case, since it wasn't in /etc/hosts and I didn't have a DNS
 > server set.
 >
 > I think it should default to either @localhost or @127.0.0.1, since everyone
 > has localhost in /etc/hosts anyway and it's always 127.0.0.1

indeed, this seems like a reasonable thing to do.  i'm trying to
remember now if there was some reason i didn't do this :-) gimmie a
day or two and if i can't come up with anything i'll change the
behavior.

thanks!
--
meem@gnu.org