启动 Mac 的Activity Monitor,您一定会发现几个带有神秘标签的进程。我们已经发布了一些解释器,详细说明了其中一些系统进程(WindowServer和kernel_task)在您的Mac上的作用。在这篇文章中,我们将讨论 mDNSResponder。
什么是 mDNSResponder?
mDNSResponder 代表“多播 DNS 响应程序”。它是一个必不可少的系统应用程序,可为某些核心 macOS 特性和功能提供支持。如果您的Mac和另一台 mDNSResponder 设备位于同一网络上,则 mDNSResponder 是后台进程,可让这两个设备相互检测和通信。
是的,mDNSResponder 服务可能看起来不熟悉,但您很可能每天都在使用它而没有意识到它。如果您曾经将您的Mac连接到本地网络上支持 AirPrint 的打印机,mDNSReponder 可以做到这一点。该过程还有助于在您的 Mac 上发现兼容 AirPlay 的设备(AirPlay-compatible devices)(例如,Apple TV)。
mDNSResponder 利用Bonjour 网络协议(Bonjour networking protocol)自动识别联网Apple设备上的设备。
“ Bonjour ”描述了构建 mDNSResponder 的网络技术。Bonjour协议在本地网络上广播您的Mac的可用性。它还允许您的设备使用IP 地址(IP addresses)进行可靠通信和交换数据。
当连接到有线或无线网络时,Bonjour会不断扫描网络以查找其他与Bonjour兼容的设备。请注意,Bonjour在(Bonjour)Mac上作为 mDNSResponder 运行。虽然这两个术语经常互换使用,但当您启动活动监视器(Activity Monitor)时,您会发现“mDNSResponder”。
(Apps)非 Apple 设备上的应用程序和服务(例如 iTunes)也可以使用Bonjour协议与您的Mac通信和交换数据。(Mac)详细了解Bonjour 服务在 Windows 10 中的工作方式(how the Bonjour service works in Windows 10)。
mDNSResponder 安全吗?
mDNSResponder 是支持Apple设备上的“Bonjour 协议”的基本元素。这是Apple设计的合法服务,因此您无需担心。该过程在后台运行,并定期在本地网络上搜索配备 Bonjour 的设备。(Bonjour-equipped)
尽管它是一个安全且没有问题的系统进程,但我们遇到了一些Mac用户,他们报告说 mDNSResponder 占用了高达 100%的CPU使用率并降低了 Wi-Fi 速度(reduces Wi-Fi speed)。
在这里,我们介绍了一些故障排除修复程序,这些修复程序可以帮助您在Mac(Mac)上将 mDNSResponder 恢复到正常状态。
修复 mDNSResponder 问题
如果 mDNSResponder 出现问题,您可能会在使用文件共享服务、媒体共享应用程序和AirPrint等打印机共享服务时遇到困难。以下修复可以消除影响 mDNSResponder 在Mac上运行的故障。
1. 强制退出 mDNSResponder(1. Force Quit mDNSResponder)
强制退出 mDNSResponder 确实会终止服务,但只是短暂的。macOS 将立即重启 mDNSResponder,因为它是一个至关重要的系统进程。但是,该操作会刷新 mDNSResponder,并有望修复导致进程出现故障的问题。
- 启动Activity Monitor,双击mDNSResponder,然后选择Quit。
- 选择强制退出(Force Quit)。
前往活动监视器的(Activity Monitor)CPU和网络(Network)部分,检查强制退出 mDNSReponder 是否稳定了服务。如果没有任何变化,请重新启动Mac或引导至安全模式(Mode)。
2. 重启你的 Mac(2. Restart Your Mac)
关闭所有活动的应用程序,单击菜单栏上的Apple 标志,然后选择(Apple logo)重新启动(Restart)。如果 mDNSResponder 继续出现异常行为,请尝试将您的Mac引导至安全模式(Safe Mode)。
关闭Mac并等待它完全关闭。之后(Afterward),按下电源按钮并立即按住Shift键。当登录窗口出现在屏幕上时,松开Shift键。(Shift)
如果您的 Mac 使用M1 Silicon 芯片(M1 Silicon chip),请将其关闭并等待大约 10 – 20 秒。然后,按住电源按钮(power button),直到屏幕上显示启动选项窗口。选择您喜欢的启动磁盘,按住Shift键,单击Continue in Safe Mode ,然后在屏幕出现登录屏幕时 松开Shift键。(Shift)
输入您的密码,正常重新启动您的Mac(Apple 标志(Apple logo)>重新启动(Restart)),并检查是否减少了 mDNSResponder CPU消耗和网络使用。
3.禁用防火墙(3. Disable Firewall)
第三方防火墙(Third-party firewalls)可能会干扰本地网络上的设备通信。如果您使用其中一个,请将其关闭并检查是否可以解决问题。您还应该确保内置的 macOS 防火墙(built-in macOS firewall)不会阻止传入连接。
- 转到系统偏好设置(System Preferences)>安全和隐私(Security & Privacy)>防火墙(Firewall)。
- 单击左下角的锁定图标,输入 Mac 的密码(或使用 Touch ID),然后单击(lock icon)防火墙选项(Firewall Options)。
- 取消选中阻止所有传入连接(Block all incoming connections)并选择确定(OK)。
4. 禁用并重新启用 mDNSResponder(4. Disable and Re-Enable mDNSResponder)
在 mDNSResponder 大量使用系统资源的极少数情况下,禁用和重新启用该服务可能会解决问题。
注意:(Note:)您需要先暂时禁用系统完整性保护 (SIP)(temporarily disable System Integrity Protection (SIP)),然后才能重新启用 mDNSResponder。SIP是一种保护协议,可防止在 macOS 上执行未经授权的代码。
- 转到Finder > Applications > Utilities并启动Terminal。
- 将以下命令粘贴到终端(Terminal)控制台中,然后按Enter。
sudo launchctl unload -w /System/Library/LaunchDaemons/com.apple.mDNSresponder.plist
- 输入 Mac 的密码,然后按Enter继续。
与Windows不同,许多 macOS 应用程序和服务需要 mDNSResponder 才能正常运行。因此,我们不建议长时间禁用 mDNSResponder。等待(Wait)一分钟,然后继续下一步以重新启用该服务。
- 将以下命令粘贴到控制台中,然后按Enter。
sudo launchctl load -w/System/Library/LaunchDaemons/com.apple.mDNSresponder.plist
- 输入 Mac 的密码,然后按Enter。
mDNSResponder 揭秘
总而言之,mDNSResponder 是一个安全的过程,可帮助您的Mac与其他设备连接和通信。如果 mDNSResponder 行为异常,则至少上述故障排除修复之一应使其活动正常化。
What is mDNSResponder on Mac and Is It Safe?
Launch your Mac’ѕ Actіvity Monitor, and you’re sure to find several processes with cryptic lаbels. We’ve published some explainers detailing what some of these system processes (WindowServer and kernel_task) do on your Mac. In this post, we’ll talk about mDNSResponder.
What Is mDNSResponder?
mDNSResponder stands for “Multicast DNS Responder.” It is an essential system app that powers some core macOS features and functionalities. If your Mac and another mDNSResponder device are on the same network, mDNSResponder is the background process that lets both devices detect and communicate with each other.
Yes, the mDNSResponder service might seem unfamiliar, but you most likely use it daily without realizing it. If you’ve ever connected your Mac to an AirPrint-enabled printer on your local network, mDNSReponder made it happen. The process also facilitates the discovery of AirPlay-compatible devices (e.g., Apple TV) on your Mac.
mDNSResponder utilizes the Bonjour networking protocol to automatically identify devices on network-connected Apple devices.
“Bonjour” describes the networking technology upon which mDNSResponder is built. The Bonjour protocol broadcasts the availability of your Mac on a local network. It also allows your device to communicate reliably and exchange data using IP addresses.
When connected to a wired or wireless network, Bonjour constantly scans the network for other Bonjour-compatible devices. Note that Bonjour runs as mDNSResponder on Mac. Although both terms are often used interchangeably, what you’ll find when you launch the Activity Monitor is “mDNSResponder.”
Apps and services (e.g., iTunes) on non-Apple devices can also communicate and exchange data with your Mac using the Bonjour protocol. Learn more about how the Bonjour service works in Windows 10.
Is mDNSResponder Safe?
mDNSResponder is an essential element that powers the “Bonjour protocol” on Apple devices. It is a legitimate service designed by Apple, so you have nothing to worry about. The process runs in the background and periodically searches for Bonjour-equipped devices on your local network.
Despite being a safe and unproblematic system process, we’ve come across some Mac users who report that mDNSResponder consumes up to 100% CPU usage and reduces Wi-Fi speed.
Here, we cover some troubleshooting fixes that can help restore mDNSResponder to normalcy on your Mac.
Fix mDNSResponder Issues
If there’s a problem with mDNSResponder, you may experience difficulties using file-sharing services, media-sharing apps, and printer sharing services like AirPrint. The following fixes can eliminate glitches affecting mDNSResponder’s operation on your Mac.
1. Force Quit mDNSResponder
Force-quitting mDNSResponder will indeed terminate the service, but only briefly. macOS will restart mDNSResponder immediately because it is a vital system process. However, the operation refreshes mDNSResponder and hopefully fixes issues causing the process to malfunction.
- Launch the Activity Monitor, double-click mDNSResponder, and select Quit.
- Select Force Quit.
Head to the CPU and Network section of the Activity Monitor and check if force-quitting mDNSReponder stabilized the service. If nothing changes, restart your Mac or boot into Safe Mode.
2. Restart Your Mac
Close all active applications, click the Apple logo on the menu bar, and select Restart. If mDNSResponder continues to act abnormally, try booting your Mac into Safe Mode.
Power off your Mac and wait for it to shut down completely. Afterward, press the power button and hold the Shift key immediately. Release the Shift key when the login window appears on the screen.
If your Mac uses the M1 Silicon chip, shut it down and wait for about 10 – 20 seconds. Then, press and hold the power button until the startup options window shows up on the screen. Select your preferred startup disk, hold the Shift key, click Continue in Safe Mode, and release the Shift key when the login screen comes on the screen.
Enter your password, restart your Mac normally (Apple logo > Restart), and check if that reduces mDNSResponder CPU consumption and network usage.
3. Disable Firewall
Third-party firewalls can interfere with devices communicating on your local network. If you use one, turn it off and check if that resolves the problem. You should also ensure that the built-in macOS firewall isn’t blocking incoming connections.
- Go to System Preferences > Security & Privacy > Firewall.
- Click the lock icon at the bottom-left corner, enter your Mac’s password (or use Touch ID), and click Firewall Options.
- Uncheck Block all incoming connections and select OK.
4. Disable and Re-Enable mDNSResponder
In the rare instance that mDNSResponder uses system resources heavily, disabling and re-enabling the service might resolve the problem.
Note: You’ll need to temporarily disable System Integrity Protection (SIP) before you can re-enable mDNSResponder. SIP is a protection protocol that prevents the execution of unauthorized code on macOS.
- Go to Finder > Applications > Utilities and launch Terminal.
- Paste the command below in the Terminal console and press Enter.
sudo launchctl unload -w /System/Library/LaunchDaemons/com.apple.mDNSresponder.plist
- Enter your Mac’s password and press Enter to continue.
Unlike Windows, many macOS apps and services require mDNSResponder to function correctly. So, we don’t advise keeping the mDNSResponder disabled for too long. Wait for a minute and proceed to the next step to re-enable the service.
- Paste the command below in the console and press Enter.
sudo launchctl load -w/System/Library/LaunchDaemons/com.apple.mDNSresponder.plist
- Enter your Mac’s password and press Enter.
mDNSResponder Demystified
To summarize, mDNSResponder is a safe process that helps your Mac connect and communicate with other devices. If the mDNSResponder acts abnormally, at least one of the troubleshooting fixes above should normalize its activities.