See this thread for a working-on-the-older-Spark-Core mDNS.
You don't have easy access to either the TTL (hop-count) or the ICMP Time Exceeded reply messages in this stack.