See if this makes sense:
I do a dns-sd -B _airplay while my ATV is sleeping and I see this:
Browsing for _airplay._tcp
Timestamp A/R Flags if Domain Service Type Instance Name
12:12:15.141 Add 2 18 local. _airplay._tcp. Apple TV
Then I go into iTunes, and sure enough, Apple TV is there. So I try to connect to it, and it fails, then Apple TV is REMOVED from the airplay list in iTunes, and then this pops up in the dns-sd -B _airplay command window:
12:13:14.937 Rmv | 0 18 local. | _airplay._tcp. | Apple TV |
It's as if the Apple TV was advertising itself, but when I tried to connect, it failed (just like ping fails), and then that caused the ATV to either stop advertising, or my PC to stop seeing it. Weird.
5 minutes later, it added itself back onto the list:
12:18:35.675 Add | 2 18 local. | _airplay._tcp. | Apple TV |
The ATV reappears in iTunes, so I try to connect to it again, but it fails, Apple TV is removed from the airplay list in iTunes, and the dns-sd shows this:
12:21:16.726 Rmv | 0 18 local. | _airplay._tcp. | Apple TV |
It's like the ATV is "there", but it's "not there" if you try and do anything to connect to it, such as Ping or use Airplay.