I am using library to discover specific services on local network by querying service type. There can be multiple services of the same type from same machine/device. There is an issue I have encountered, query responses that have multiple answers are not reported as separate entries.
Checkout wireshark screenshot:
Here 192.168.80.92 is the address of device running the client code. 192.168.80.182 is the server which responds to mdns queries (it is windows machine, uses bonjour service).
As you can see from screenshot, the are 2 services of type _itxpt_http._tcp. The Answer section contains 2 records, + additional records for each of these 2 answers.
Hello,
Thank you for the library!
I am using library to discover specific services on local network by querying service type. There can be multiple services of the same type from same machine/device. There is an issue I have encountered, query responses that have multiple answers are not reported as separate entries.
Checkout wireshark screenshot:
Here
192.168.80.92
is the address of device running the client code.192.168.80.182
is the server which responds to mdns queries (it is windows machine, uses bonjour service). As you can see from screenshot, the are 2 services of type_itxpt_http._tcp
. TheAnswer
section contains 2 records, + additional records for each of these 2 answers.The client code:
Client only registers 1 entry, with values of second answer:
Is there a way to get these values as two separate entries? Like:
It seems like the entry gets overwritten with the data from last answer in this loop: https://github.com/hashicorp/mdns/blob/v1.0.5/client.go#L272