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
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
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