You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Thanks for opening the issue with much details! I think the problem is that the conflict handler checks one record at a time and in this case there are two TYPE A records for the same hostname, and each record triggers a conflict with another record (different address).
In my understanding, one Resource Record in DNS can only have one address. So I didn't push two addresses into a single RR, instead I came up with a patch that check if address record would match with any address record of the local responder. See PR #294 . In my quick testing, it seems to help. Please let me know if this patch helps in your case, if you got chance.
I'm still in the process of understanding the mDNS protocol, so may be that I'm misusing the library.
I have two network interfaces on my laptop:
WiFi:
inet 192.168.1.41/24 brd 192.168.1.255 scope global dynamic noprefixroute wlp3s0
Ethernet:
inet 192.168.1.201/24 brd 192.168.1.255 scope global dynamic noprefixroute enx
One can see they are on the same subnet:
192.168.1.41 & wifi_mask == 192.168.1.201 & ethernet_mask
I initialize
ServiceInfo
withenable_addr_auto
andinstance_name
is a randomu64
like so:When I run the example with the above I see this sequence of events:
I wonder whether in the
conflict_handler
when checking for duplicates per interface the check should instead be per interface subnet?The text was updated successfully, but these errors were encountered: