[avahi] Announce Service for another Computer
Jens Dede
ietf at jdede.de
Fri May 14 07:03:59 PDT 2010
Is it possible to announce a service for another computer which name is
not resolvable via DNS or mDNS?
I like to use python with dbus.
bus = dbus.SystemBus()
server = dbus.Interface(
bus.get_object(avahi.DBUS_NAME, avahi.DBUS_PATH_SERVER),
avahi.DBUS_INTERFACE_SERVER)
g = dbus.Interface(
bus.get_object(avahi.DBUS_NAME,
server.EntryGroupNew()),
avahi.DBUS_INTERFACE_ENTRY_GROUP)
g.AddService(avahi.IF_UNSPEC, avahi.PROTO_INET6, dbus.UInt32(0),
self.name, self.stype, self.domain, self.host,
dbus.UInt16(self.port), self.text)
g.commit()
If I set self.host to an IP(v6)-Address or an unresolvable name I get an
error message. self.host = "" uses my hostname to publish the service.
How can I announce a service for any address / host?
Regards,
Jens
More information about the avahi
mailing list