[cups.general] Finding IP Address?
Brandon S. Allbery KF8NH
allbery at ece.cmu.edu
Mon Jul 16 12:01:56 PDT 2007
On Jul 16, 2007, at 14:53 , Carlos Will wrote:
>> Anyway, the Device URI contains the information you want, indirectly.
>> In a URI such as "socket://prt242-copier:9100" the hostname is
>> "prt242-copier"; you can use a utility such as "host" or "nslookup"
>> to go from that to the IP address.
>>
> Thanks for the reply Brandon. Doing "host or nslookup" on that
> would only work if those entries are listed in DNS which they are
> not. They are tied to a CUPS config somewhere which I just can't
> find. Is there no where in CUPS that will show me this info because
> CUPS has to know that printer123 = 10.1.1.10 because I am 100% sure
> that DNS is not doing this for CUPS.
If it's not in standard DNS then it must be either in a hosts file (/
etc/hosts on Unix, various other places on Windows) or coming from
some other naming system such as mDNS (Bonjour). CUPS doesn't have
its own private name service.
--
brandon s. allbery [solaris,freebsd,perl,pugs,haskell] allbery at kf8nh.com
system administrator [openafs,heimdal,too many hats] allbery at ece.cmu.edu
electrical and computer engineering, carnegie mellon university KF8NH
More information about the cups
mailing list