I'm trying to create a zeroconf app which allows one machine to be "host" which takes ownership of a certain hostname.
For example, machineA sets it's host name to 'testbox', and network devices can access it via 'testbox.local'.
But then I want machineB to set it's host name to 'testbox', and then I would like network devices to connect to machineB instead of machineA.
At the moment this is working to some degree, however different browsers cache the hostname for different periods of time.
Is there some way to configure avahi to broadcast the hostname with a short-lived TTL?