In the below patches you can find code to add the probe tiebreaking
functionality to mDNS. This is important for solving conflicts if a lot of
hosts power on at more or less the same time.
The basic functionality is:
During probing the probe messages that are received are evaluated against the
probe message we are sending out.
If they have the same probe question in them, we consult the authoritative
section of the message to find the answers to the probes. These are the RR's
the two probing hosts would like to use. We compare them in lexicographical
order and the lexicographical later host wins. The winner can ignore the probe
packet. The loser must wait one second. After one second the host retries with
the same names.
For a more detailed explanation see RFC6762 section 8.2.