<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><br><div><div>On 16/03/2010, at 11:11 AM, Jeff Koftinoff wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><span class="Apple-style-span" style="font-family: monospace; ">I want to use avahi in an embedded device. I'd like for avahi to advertise the device's manufacturer name and serial number as the host name of the device. &nbsp;I also want the user to be able to enter in an alias for this device's host name. I want the device to be discoverable by both host names even though they would resolve to the same IP address.<br><br>For instance, ACME Inc., &nbsp;has a device model number SX194J and the device's serial number is 3428472. &nbsp;The device would always be accessible via the host name:<br><span class="Apple-tab-span" style="white-space: pre; ">        </span>acme-sx194j-3428472.local.<br><br>The user purchases the device and via the front panel, enters in the alias name: 'camera-front-door'<br><br>Now the device is also accessible as:<br><span class="Apple-tab-span" style="white-space: pre; ">        </span>camera-front-door.local.</span><div><span class="Apple-style-span" style="font-family: monospace; ">and it will still be accessible as:</span></div><span class="Apple-style-span" style="font-family: monospace; "><span class="Apple-tab-span" style="white-space: pre; ">        </span>acme-sx194j-3428472.local.<br></span><div><font class="Apple-style-span" face="monospace"><br></font></div><div><span class="Apple-style-span" style="font-family: monospace; ">I want this because the name with the embedded serial number is easy to match with a label on the device, and the user friendly name is relevant to the user - until it isn't, for instance the device is disconnected as re-sold.<span class="Apple-tab-span" style="white-space:pre">        </span></span></div><div><span class="Apple-style-span" style="font-family: monospace; "><br>How do I configure avahi to do this?<br><br>Regards,<br>Jeff<br></span></div></div><br></blockquote></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 12px/normal Helvetica; min-height: 14px; "><br></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 12px/normal Helvetica; ">Hi Jeff,</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 12px/normal Helvetica; min-height: 14px; "><br></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 12px/normal Helvetica; ">Whist I think what you want could be achieved with&nbsp;avahi_entry_group_add_record(...) I would proceed with caution. The hostname part is supposed to be malleable as part of the Zeroconf spec in order to deal with naming conflicts.&nbsp;</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 12px/normal Helvetica; min-height: 14px; "><br></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 12px/normal Helvetica; ">What service types are you advertising with your devices ? If it is a proprietary or custom protocol&nbsp;perhaps you could simply have the model and serial numbers associated with that service as txt records ? That way you can present the 'user friendly name' alongside the serial &amp; model in a simple custom browser.</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 12px/normal Helvetica; min-height: 14px; "><br></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 12px/normal Helvetica; ">Rob</div></body></html>