[Solved] mDNS - not re-advertised after TTL

DavidDPD
Posts: 11
Joined: Thu Aug 06, 2015 8:54 am

[Solved] mDNS - not re-advertised after TTL

Postby DavidDPD » Sat Jan 09, 2016 9:21 am

Are the mDNS API support to re-adversite after the TTL on their own, or does the user have to manually step up some kind of poller ? (I'm not super familiar mDNS spec itself.)

After about 5 minutes, the SDK 1.5 mDNS init seems to withdraw itself, and not re-advertised it.

Code: Select all

> dns-sd -B _chatFabric
Browsing for _chatFabric._tcp
DATE: ---Fri 08 Jan 2016---
17:07:32.258  ...STARTING...
Timestamp     A/R    Flags  if Domain               Service Type         Instance Name
17:07:52.920  Add        2   4 local.               _chatFabric._tcp.    cf-18fe:34a2:e05b


17:14:15.897  Rmv        0   4 local.               _chatFabric._tcp.    cf-18fe:34a2:e05b

DavidDPD
Posts: 11
Joined: Thu Aug 06, 2015 8:54 am

Re: mDNS - not re-advertised after TTL

Postby DavidDPD » Sat Jan 09, 2016 12:11 pm

I actually figured out this issue. This was a usage issues.

Especially on Mac OS X and iOS ... the service name (badly named in the ESP SDK as mdns_info->server_name ), needs to be a registered in /etc/servers for the dns-sd tool send the QM/QU mDNS multicast questions/queries on the ethernet. Once I moved this to a known server, the Apple stuff finally started to ask the questions, and the EPS SDK mDNS APIs, do correctly reply.

So, i think I solved my own issue.

Who is online

Users browsing this forum: No registered users and 16 guests