job-originating-host-name: how to get IP addressonly

Greg Saunders greg at taord.com
Thu Sep 29 18:00:00 PDT 2011


http://www.cups.org/documentation.php/man-cups-lpd.html

-n
Disables reverse address lookups; normally cups-lpd will try to discover the hostname of the client via a reverse DNS lookup.

RTFM to myself :P


> I added
>
> HostNameLookups off
>
> to the cupsd.conf file, restarted cups and no dice. I'm still getting the hostname showing up in the job-originating-host-name" parameter in the cups options instead of the IP address.
>
> Ubuntu 10.04
> cups 1.4.3
> clients: Win XP and Win 7
> protocol: LPR to the cups LPD
>
> There must be something o/s specific that's mucking with this. Any ideas?
>
> Thanks
> Greg
>
>
> > In current versions of CUPS (1.4 and later IIRC) setting HostNameLookups to off (the default setting) should do just that, unless there is some distro-specific stuff getting in the way.
> >
> > On Sep 28, 2011, at 2:50 PM, Greg Saunders wrote:
> >
> > > Hi all, I was wondering if there is a way to disable the reverse DNS lookup that cups must to in order to obtain the host name of the submitting client, and instead, just get the IP address of the client in the "job-originating-host-name" parameter in the cups options passed to the filtering.
> > >
> > > Thanks!
> > > Greg
> > > _______________________________________________
> > > cups mailing list
> > > cups at easysw.com
> > > http://lists.easysw.com/mailman/listinfo/cups
> >
> > __________________________________________________
> > Michael Sweet, Senior Printing System Engineer, PWG Chair
> >
>





More information about the cups mailing list