I would like to ask a question about mDNS.
I am trying to create a Linux process which can discover some services (e.g. _airplay._tcp., _raop._tcp) from the other device when the device joins the Linux AP.
I can get the notification through mDNS, and use the
dns-sd -B _xxxx._tcp
I can see:
Browsing for _xxx._tcp Timestamp A/R Flags if Domain Service Type Instance Name 18:06:15.281 Add 3 8 local. _xxxx._tcp. xxxx_name
However, when I move the device out of the WiFi range, I can not get the removed notification through mDNS and no removed event is seen by
dns-sd command. I was wondering if it is expected that mDNS can not know the device is removed in this case?
Or maybe mDNS can know the device is removed through the network interface changed? I can not get the removed event, it is because my Linux network configuration is wrong?