* allow to receive multicast on the same host
via multicast loopback flag
* export SendMulticast function, needed for async
notification on registry updates
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
We are setting Truncated bit to false when mDNS has a lot of queries as
Hashicorp fork does not handle the case when Truncated bit is set.
We are happy to do this for the time being until we fix the server later
on.
- dns.Msg construction is now explicit, with comments pointing to the RFC about
the values of each field.
- dns.Msg responses no longer contain a Question section, which is not allowed
according to the spec.
- handleQuestion's interface returns both unicast and multicast answer records.
(Note: These are not yet treated differently by the sendResponse method.)
- removed unused error return value of handleQuestion