Prev · NextSTR #3239: snmp backend should verify hostname in device URI

Status:4 - Pending
Priority:2 - Low, e.g. a documentation error or undocumented side-effect
Scope:3 - Applies to all machines and operating systems
Subsystem:Backends
Summary:snmp backend should verify hostname in device URI
Version: -feature
Created By:twaugh.redhat
Assigned To:mike
Fix Version:Unassigned
Update Notification:

Receive EMails Don't Receive EMails


Trouble Report Files:

No files


Trouble Report Dialog:

Name/Time/Date/Text
twaugh.redhat: 05:22 Jun 29, 2009
 
When the snmp backend is given a device URI by a printer it may not have the correct hostname in.  Example:
  https://bugzilla.redhat.com/show_bug.cgi?id=506803

Could the snmp backend verify that the hostname can be resolved, and if not replace it with the IP address it used for the SNMP query?

 
mike: 08:42 Jun 29, 2009
 
Well, this is a printer firmware bug... Knowing Brother, there is probably a way for the user to edit the reported hostname and/or enable Bonjour/mDNS via the printer's web interface.

Given that hostname lookups are notoriously unpredictable, I'm not sure we want to do a blocking hostname lookup call in the backend on the off chance the printer reports a bad hostname. We're looking at adding a (private) async DNS API in CUPS (to wrap all of the different DNS APIs we might use) along with an async connection API, but that won't happen until at least CUPS 1.5.

I'll leave this in CUPS 1.4.x, but don't expect a fix for a while...

 
mike: 08:33 Aug 05, 2009
 
Pushing to 1.5 at the earliest...