Remote Desktop: Remote Task Server with both IPv4 & IPv6 addresses/DNS records is unreachable

Originator:j.a.grigutis
Number:rdar://23335658 Date Originated:30-Oct-2015 02:15 PM
Status:Open Resolved:
Product:Remote Desktop Product Version:3.8/380A95
Classification:Serious Bug Reproducible:Always
 
Summary:
An ARD task server with both A and AAAA DNS records (along with the matching PTR records for reverse lookups) is "unreachable" when entering the hostname in Preferences… > Task Server > Use remote Task Server. Entering the IPv4 or IPv6 address seems to work, the IPv6 address gets changed to the IPv4 address.

Steps to Reproduce:
1. Setup an OS X Mac with static IPv4 and IPv6 addresses (let's call this the task server).
2. Create the DNS records (A, AAAA, and PTR)
3. Install Apple Remote Desktop.
4. In Preferences… > Task Server, select "Use Task Server on this computer" and check "Allow remote connections to this server".
5. On a separate OS X Mac (let's call this the admin client), install Apple Remote Desktop.
6. In Preferences… > Task Server, select "Use remote Task Server" and enter the hostname registered with DNS in step 2.

Expected Results:
ARD should validate the task server and prompt for its credentials.

Actual Results:
After attempting to validate the task server, it displays "Unreachable"

Version:
3.8/380A95

Notes:
If I use the IPv4 address for the remote task server, it'll be okay for a while, but I often find problems such as the task server scanner not working (no entries returned).

This is what occur in the log when attempting to enter the hostname for the remote task server:

10/30/15 2:39:43.436 PM ARDAgent[499]: Invalid sendpkt response reply 524 from 127.0.0.1 (status->address: 0.0.0.0), 0
10/30/15 2:39:43.921 PM ARDAgent[499]: Invalid sendpkt response reply 524 from 127.0.0.1 (status->address: 0.0.0.0), 0
10/30/15 2:39:45.363 PM ARDAgent[499]: Invalid sendpkt response reply 524 from 127.0.0.1 (status->address: 0.0.0.0), 0
10/30/15 2:39:47.288 PM ARDAgent[499]: Invalid sendpkt response reply 524 from 127.0.0.1 (status->address: 0.0.0.0), 0
10/30/15 2:39:49.003 PM ARDAgent[499]: Invalid sendpkt response reply 524 from 127.0.0.1 (status->address: 0.0.0.0), 0
10/30/15 2:39:50.831 PM ARDAgent[499]: Invalid sendpkt response reply 524 from 127.0.0.1 (status->address: 0.0.0.0), 0
10/30/15 2:39:52.882 PM ARDAgent[499]: Invalid sendpkt response reply 524 from 127.0.0.1 (status->address: 0.0.0.0), 0
10/30/15 2:39:54.853 PM ARDAgent[499]: Invalid sendpkt response reply 524 from 127.0.0.1 (status->address: 0.0.0.0), 0
10/30/15 2:39:56.664 PM ARDAgent[499]: Invalid sendpkt response reply 524 from 127.0.0.1 (status->address: 0.0.0.0), 0
10/30/15 2:39:58.685 PM ARDAgent[499]: Invalid sendpkt response reply 524 from 127.0.0.1 (status->address: 0.0.0.0), 0
10/30/15 2:40:00.592 PM Remote Desktop[2213]: SendMessageToAgentWithReply: gCmdReplyPtr->cmdResult contained error code -6404
10/30/15 2:40:00.592 PM Remote Desktop[2213]: SendPacketWithReply error -6404

Configuration:
Model Name:	Mac mini
  Model Identifier:	Macmini7,1
  Processor Name:	Intel Core i7
  Processor Speed:	3 GHz
  Number of Processors:	1
  Total Number of Cores:	2
  L2 Cache (per Core):	256 KB
  L3 Cache:	4 MB
  Memory:	16 GB
  Boot ROM Version:	MM71.0220.B06
  SMC Version (system):	2.24f32

Comments


Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at bugreport.apple.com before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!