Difference between revisions of "Mac"
From Alessandro's Wiki
(Reverted edits by Ypebezimyx (Talk) to last version by Xunil) |
|
(No difference)
|
Revision as of 15:01, 18 November 2010
Terminal
Bonjour
- list AFP hosts in network
dns-sd -B _afpovertcp._tcp .
- list SSH available hosts
dns-sd -B _ssh._tcp .
example
- ssh to a bonjour host
mac1:~ user$ dns-sd -B _ssh._tcp . Browsing for _ssh._tcp Timestamp A/R Flags if Domain Service Type Instance Name 10:21:16.447 Add 2 4 local. _ssh._tcp. xsysadmin 10:21:16.452 Add 2 4 local. _ssh._tcp. v2_ video edit 10:21:16.458 Add 2 4 local. _ssh._tcp. x’s Mac Pro
- remove spaces with '-' and add .local at the end
mac1:~ user$ ssh v2-video-edit.local
DNS
- Purge dns cache
Leopard dscacheutil -flushcache
Tiger lookupd -flushcache