Disable Bonjour by Turning Off mDNSResponder

Sep 15, 2009 - 11 Comments

Terminal in OS X

Bonjour is a great service that runs in the background of your Mac to auto-discover network resources, that is, it’s great until mDNSResponder goes haywire. I was recently in a very creatively crafted network environment that made Bonjour absolutely freak out and tax my CPU with a million processes, so I opted to just disable the service temporarily.

Generally speaking you should leave Bonjour enabled since it’s functionality is ubiquitously used throughout Mac OS X, but if you DO want to disable mDNSResponder, here’s how to do it:

How to Turn Off mDNSResponder by Disabling Bonjour in Mac OS X

Launch the terminal and type:

sudo launchctl unload -w /System/Library/LaunchDaemons/com.apple.mDNSResponder.plist

This unloads the mdnsresponder launchdaemon from launchctl, of course that can be reversed with another command, if need be.

Turn on Bonjour aka mDNSResponder in Mac OS

To reenable Bonjour simply type the following to reload the mDNSResponder daemon:

sudo launchctl load -w /System/Library/LaunchDaemons/com.apple.mDNSResponder.plist

Both of these commands to enable or disable Bonjour will require your administrator password to execute as root, hence the use of sudo.

This is obviously for advanced Mac users who know enough about mDNSResponder and Bonjour to want to adjust the functionality, but most Mac users should never mess with this stuff.

.

Related articles:

Posted by: David Mendez in Command Line, Mac OS, Troubleshooting

11 Comments

» Comments RSS Feed

  1. Tom says:

    This no longer works. When you enter the command in Terminal you get this reponse-Operation not permitted while System Integrity Protection is engaged. How you disable SIP I don’t know but Apple introduced this so you couldn’t disable stuff they did not want you to.

  2. Viet Nguyen says:

    Same problem as Janvier: If I use the given terminal command to disable Bonjour, my computer can no longer access the internet. I’ve never thought that Apple use this way to force user getting involve in their iTunes services.

  3. Truda says:

    Happened the same problem of Paul and Janvier.

    Couldn’t connect to the internet anymore.

  4. Google says:

    After I originally left a comment I seem to have clicked on the -Notify me when new comments are
    added- checkbox and now each time a comment is added I
    get four emails with the exact same comment.
    Is there an easy method you can remove me from that service?
    Thanks!

  5. Shaun says:

    Doing this breaks iTunes.

  6. […] and work seamlessly together on your local network. To disable the service have a look at this: Disable Bonjour by turning off mDNSResponder – OS X Daily Just remember that some network services you may be used to being available will no longer […]

  7. Paul says:

    Same problem as Janvier: If I use the given terminal command to disable Bonjour, my computer can no longer access the internet.

  8. Janvier says:

    I tried this and couldn’t access the web anymore..

  9. Guerren says:

    YMMV. I tried this a while back and it disabled all name resolution period – It seems like mDNSResponder handles dhcp addy acquisition and renewals. If you go down this route you might consider renewing your dhcp lease to see if it still works…

  10. Jon says:

    Would this fix my DNS issue I have when I connect to a Windows VPN but cannot ping/VNC to PC’s by computer name?

Leave a Reply

 

Shop on Amazon.com and help support OSXDaily!

Subscribe to OSXDaily

Subscribe to RSS Subscribe to Twitter Feed Follow on Facebook Subscribe to eMail Updates

Tips & Tricks

News

iPhone / iPad

Mac

Troubleshooting

Shop on Amazon to help support this site