no mDNS message respond with iOS9

Hi,


One small software was using mDNS message to get my iphone or ipad devices' ns record which by giving the device's ip to get the device's name.


But I found by using wireshark that all iphone or ipad with iOS8 will give the respond to the mDNS resolve request while the devices have iOS9 do not give any respond at all.


So is there any change from iOS8 to iOS9 which might cause this problem? Is there any way to get the devices' name by giving the ip address for iOS9 devices?


Thank you so much.


Guanhua

One small software was using mDNS message to get my iphone or ipad devices' ns record which by giving the device's ip to get the device's name.

Huh. The

ns
record is part of DNS’s delegation infrastructure so I’m at a loss as to how you’d like is to get the device’s name. Please explain that in more detail.

Share and Enjoy

Quinn “The Eskimo!”
Apple Developer Relations, Developer Technical Support, Core OS/Hardware

let myEmail = "eskimo" + "1" + "@apple.com"

Hi eskimo, thanks for the reply.

What I did was to sending mDNS broadcast message within the local network, which is the request for a address-to-name translation.

My iphone and ipad with iOS8 will respond to the mDNS request properly while iOS9 devices don't respond to the request at all with the same network configuration.

Just want to know if this is a intended behavior or just some bug. Thanks a lot.

What I did was to sending mDNS broadcast message within the local network, which is the request for a address-to-name translation.

But that’s a

PTR
record, not an
NS
record, right?

Share and Enjoy

Quinn “The Eskimo!”
Apple Developer Relations, Developer Technical Support, Core OS/Hardware

let myEmail = "eskimo" + "1" + "@apple.com"

Oh, yes, you are correct, that's what I'm looking for, the PTR record with the host name.

My iphone with iOS9 could not respond to this kind of request while iOS8 is working properly.

Do you know what's going on here? Is it a bug or is it intended to do so?

Thanks!!

Traditionally the Bonjour implementation on iOS has not registered

A
,
AAAA
or
PTR
records for the device’s name unless there’s a service registered on that device. This is in contrast to OS X, where those records are always registered.

So, for example, if you have an Mac called “What Are The Civilian Applications?”, the system will automatically register

A
and
AAAA
records for
what-are-the-civilian-applications.local.
and a
PTR
record for the
xxx.in-addr-.local.
(where
xxx
is the primary IP address, reversed) that points to
what-are-the-civilian-applications.local.
. In contrast, an iOS device will only register those records if you start a service on that device.

Assuming you don’t have a service registered on your iOS device, the iOS 9 behaviour is correct and the iOS 8 behaviour is weird. It’s probably one of those places where

discoveryd
didn’t quite get things right.

Share and Enjoy

Quinn “The Eskimo!”
Apple Developer Relations, Developer Technical Support, Core OS/Hardware

let myEmail = "eskimo" + "1" + "@apple.com"
no mDNS message respond with iOS9
 
 
Q