Skip navigation

How to disable MDNS

4818 Views 4 Replies Latest reply: Feb 9, 2011 6:55 PM by JackyYeh RSS
JackyYeh Calculating status...
Currently Being Moderated
Feb 9, 2011 12:04 PM
I have a MAC OS NB. When I link its ethernet to the LAN of my router modem, it will send MDNS to cause my another NB on the same LAN of the router modem not to access internet because another NB can't get its DNS response packets. My question is why MAC OS NB doesn't send pure DNS packets and send MDNS. Because it causes my NB can't access internet, I need to know how to disable MDNS. This is my mail address, **@**.com. You can also send the solution to me. Thanks in advanced.

Message was edited by: JackyYeh

<Edited by Host>
MAC NB, Mac OS X (10.6), MAC NB
  • J D McIninch Level 5 Level 5 (4,060 points)
    Currently Being Moderated
    Feb 9, 2011 12:55 PM (in response to JackyYeh)
    mDNS doesn't affect regular DNS, so that's not the problem.

    OS X does send DNS requests and replies like any other OS. For that matter, most modern OS's also have mDNS services. Bonjour (Apple's implementation) is available for OS X and Windows, and there's Avahi for Linux and NetBSD systems. Windows CE has a similar function.

    When a machine in a network needs to resolve a host name, it sends a DNS request to the list of DNS servers manually configured or provided by DHCP from the local network's DHCP service. If a machine wants to perform local service discovery on the LAN, it instead sends out a multicast DNS request and a system on the LAN replies. Fundamentally, the requests are handled differently and don't interfere with one another. mDNS doesn't respond to regular DNS requests (which your switch or router shouldn't even make visible to the other systems on the LAN), and systems with mDNS do not use it to replace standard DNS requests.

    On Windows systems, you can disable mDNS by disabling the Bonjour (if present) and ZeroConf services in the services administration panel. In Linux, you disable it by logging in as root and typing

    $ service avahi-daemon stop
    $ service avahi-dnsconfd stop

    In OS X, you can disable it by opening terminal and typing the following:

    launchctl unload /System/Library/LaunchDaemons/
    launchctl unload /System/Library/LaunchDaemons/

    ... this is unlikely to resolve your problem as mDNS is not likely the cause. Disabling mDNS will disable service discovery on your local network, so file shares, printer shares, photo and music sharing, screen sharing, etc. can all be affected.
    2 iMacs (me + kids), 2 MacBook Pros (work + wife), iPhone 4, Mac OS X (10.6.4), various Linux PCs and one WinXP laptop (gathering dust)
  • k.panic Calculating status...
    Currently Being Moderated
    Feb 9, 2011 12:57 PM (in response to JackyYeh)
    What's more likely is that your router is not running NAT or DHCP is not working as it should be.
    15" MacBook Pro i7 (Mid 2010), Mac Mini (Mid 2009), iPad, iPod, iPhone 4, Mac OS X (10.6.4), Go break something!
  • J D McIninch Level 5 Level 5 (4,060 points)
    Currently Being Moderated
    Feb 9, 2011 1:26 PM (in response to k.panic)
    Most likely DHCP is not working properly. For some routers, they proxy DNS requests through the router, so when you receive your DHCP lease from the router, it gives you the router's IP as your DNS server and all DNS requests go to it. However, if the router's DNS proxy has a problem, then DNS breaks.

    A good solution is to configure your computers to use a known external DNS provider like in addition to whatever DHCP assigned. This will usually fix any DNS issues that arise from your router or gateway.
    2 iMacs (me + kids), 2 MacBook Pros (work + wife), iPhone 4, Mac OS X (10.6.4), various Linux PCs and one WinXP laptop (gathering dust)


More Like This

  • Retrieving data ...

Bookmarked By (0)


  • This solved my question - 10 points
  • This helped me - 5 points
This site contains user submitted content, comments and opinions and is for informational purposes only. Apple disclaims any and all liability for the acts, omissions and conduct of any third parties in connection with or related to your use of the site. All postings and use of the content on this site are subject to the Apple Support Communities Terms of Use.