STOP
mDNSResponder
from running on your Mac!
Important update for:
Snow LEOpard (10.6.X)
and
iPhone/iTouch (3.x.x)
users
If you TURN OFF MDNS, as seen at the bottom of this page, your DNS will stop working !!!!!
Do not panic, you can still ssh into the device.
ONLY FOR OS-X 10.6.x and 3.x iPhone/iTouch and above do:
To fix, see Apples NOTICE or do:
sudo nano /System/Library/LaunchDaemons/com.apple.mDNSResponder.plist
If it is in BINARY file that you can not read, do:
sudo plutil -convert xml1 /System/Library/LaunchDaemons/com.apple.mDNSResponder.plist
BEFORE:
ProgramArguments
/usr/sbin/mDNSResponder
-launchd
AFTER:
ProgramArguments
/usr/sbin/mDNSResponder
-launchd
-NoMulticastAdvertisements
BEFORE:
AFTER:
Click HERE to get mDNS Watch by FEASS for your iPhone/iTouch for FREE .
Click HERE to get BonjourBrowser (1.5.6) for your Mac.
Only for OS-X 10.5.x and lower and iPhone/iTouch 2.x.x and lower, do:
TURN OFF:
sudo launchctl unload -w /System/Library/LaunchDaemons/com.apple.mDNSResponder.plist
TURN ON:
sudo launchctl load -w /System/Library/LaunchDaemons/com.apple.mDNSResponder.plist
NOTES:
- Both the above WILL survive a re-boot.
- This trick will NOT work on your jailbroken iPod Touch or iPhone if you are running 3.X.X of the OS
- You still can ssh to your device, but all other DNS functions will be down....
- If you use the Snow LEOpard trick above on your iPhone/iTouch,
Apps like "Mover" will not see others devices.
Drive your network admin NUTS, do:
- Make belive you are running a web server (on port 80), do:
/usr/bin/dns-sd -R "MyWebServer" _http._tcp . 80 path=/path-to-funny-web-page.html
- Make belive you have a printer (LPR service on port 515), do:
/usr/bin/dns-sd -R "MyPrinter" _printer._tcp. . 515 pdl=application/postscript
(LPD = 515, IPP (cUps) = 631, JetDirect (socket) = 9100)
You get the idea, right !
8-)
To see what items are "on sale":
/usr/bin/dns-sd -B _http._tcp
or
/usr/bin/dns-sd -B _x-mover3._tcp
or
/usr/bin/mdns -B _x-mover3._tcp
or
/usr/bin/mdns -B _smb._tcp
You DO NOT WANT OTHERS to see YOUR stuff,
/usr/bin/dns-sd -B _ssh._tcp
Browsing for _ssh._tcp
DNSService call failed -65563
Above is an example of what you SHOULD see on your system, if mDNS broadcasting is DISabled.
Still not sure if it is off ? Do:
/usr/bin/sudo /usr/sbin/tcpdump -i en1 -n port 5353
en0 = Hardline Ethernet
en1 = Wireless Ethernet
www.dns-sd.org and www.multicastdns.org and zeroconf.org and avahi.org

|
© Gary Sullivan
Maintainer of this page.
The URL of this page is:
http://www.hackerskitchen.com/mac-old/mDNS.html
Constructive Comments, Suggestions and Requests are welcome.
|
™
|