Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Does anybody happen to know why a mDNS "A" type request would workfor WindowsXP but not for Mac OSX.



Never mind.  I realized OSX wanted a unicast response.

Chris





----- Original Message ----- From: "Chris J. Miller" <email@hidden>
To: <email@hidden>
Sent: Friday, July 20, 2007 1:14 PM
Subject: Does anybody happen to know why a mDNS "A" type request would workfor WindowsXP but not for Mac OSX.



Does anybody happen to know why a mDNS "A" type request would work for WindowsXP but not for Mac OSX. I'm teaching myself mDNS by programming an embedded device to respond to mDNS type "A" queries. I beleive I'm doing everything correctly but Mac OSX doesn't accept my response while WindowsXP does. I've tried changing many things (flags,UDP source port, etc.) but can't seem to get OSX to accept my request. My embedded device is named junk.local and I'm testing this by doing a "ping junk.local". OSX responds with "ping: cannot resolve junk.local: Unknown host" while WindowsXP resolves the name and pings my device as expected.

Thanks,
Chris

Here are the specifics of the packets that are exchanged...

WindowsXP ip address = 192.168.254.3
Macbook ip address = 192.168.254.6
embedded device name = junk.local, ip address = 192.168.254.21


This works!

received by embedded device from WindowsXP SP2
0x01 0x00 0x5e 0x00 0x00 0xfb 0x00 0x13 0x20 0x04 0x8c 0xce 0x08 0x00 // Ethernet header
0x45 0x00 0x00 0x38 0x72 0xdb 0x00 0x00 0xff 0x11 0xa9 0x31 0xc0 0xa8 0xfe 0x03 0xe0 0x00 0x00 0xfb // IP header
0x14 0xe9 0x14 0xe9 0x00 0x24 0x95 0x79 // UDP header
0x00 0x00 0x00 0x00 0x00 0x01 0x00 0x00 0x00 0x00 0x00 0x00 // DNS header
0x04 0x6a 0x75 0x6e 0x6b 0x05 0x6c 0x6f 0x63 0x61 0x6c 0x00 0x00 0x01 0x80 0x01 0x13 0x6c 0x5c 0xf9 // DNS question


sent by embedded device
0x01 0x00 0x5e 0x00 0x00 0xfb 0x00 0x13 0x20 0x04 0x8c 0xcf 0x08 0x00 // Ethernet header
0x45 0x00 0x00 0x42 0x00 0x05 0x00 0x00 0xff 0x11 0x1b 0xec 0xc0 0xa8 0xfe 0x15 0xe0 0x00 0x00 0xfb // IP header
0x14 0xe9 0x14 0xe9 0x00 0x2e 0x52 0x18 // UDP header
0x00 0x00 0x84 0x00 0x00 0x00 0x00 0x01 0x00 0x00 0x00 0x00 // DNS header
0x04 0x6a 0x75 0x6e 0x6b 0x05 0x6c 0x6f 0x63 0x61 0x6c 0x00 0x00 0x01 0x80 0x01 0x00 0x00 0x00 0x78 0x00 0x04 0xc0 0xa8 0xfe 0x15 // DNS answer RR



This does not work!

received by embedded device from MacBook OS 10.4.10
0x01 0x00 0x5e 0x00 0x00 0xfb 0x00 0x17 0xf2 0xce 0x65 0xdd 0x08 0x00 // Ethernet header
0x45 0x00 0x00 0x38 0x3b 0xba 0x00 0x00 0x01 0x11 0xde 0x50 0xc0 0xa8 0xfe 0x06 0xe0 0x00 0x00 0xfb // IP header
0xc2 0x07 0x14 0xe9 0x00 0x24 0xdf 0xc6 // UDP header
0x58 0xda 0x01 0x00 0x00 0x01 0x00 0x00 0x00 0x00 0x00 0x00 // DNS header
0x04 0x6a 0x75 0x6e 0x6b 0x05 0x6c 0x6f 0x63 0x61 0x6c 0x00 0x00 0x01 0x00 0x01 0x0a 0x5f 0xb3 0x95 // DNS question


sent by my embedded device
0x01 0x00 0x5e 0x00 0x00 0xfb 0x00 0x13 0x20 0x04 0x8c 0xcf 0x08 0x00 // Ethernet header
0x45 0x00 0x00 0x42 0x00 0x04 0x00 0x00 0xff 0x11 0x1b 0xed 0xc0 0xa8 0xfe 0x15 0xe0 0x00 0x00 0xfb // IP header
0x14 0xe9 0x14 0xe9 0x00 0x2e 0x52 0x18 // UDP header
0x58 0xda 0x84 0x00 0x00 0x00 0x00 0x01 0x00 0x00 0x00 0x00 // DNS header
0x04 0x6a 0x75 0x6e 0x6b 0x05 0x6c 0x6f 0x63 0x61 0x6c 0x00 0x00 0x01 0x80 0x01 0x00 0x00 0x00 0x78 0x00 0x04 0xc0 0xa8 0xfe 0x15 // DNS answer RR


_______________________________________________
Do not post admin requests to the list. They will be ignored.
Bonjour-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/bonjour-dev/email@hidden

This email sent to email@hidden



_______________________________________________
Do not post admin requests to the list. They will be ignored.
Bonjour-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/bonjour-dev/email@hidden

This email sent to email@hidden
References: 
 >Does anybody happen to know why a mDNS "A" type request would work for WindowsXP but not for Mac OSX. (From: "Chris J. Miller" <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.