Looks like no one’s replied in a while. To start the conversation again, simply ask a new question.

mDNSResponder Fail on certain applications

Hi All, I am facing a weird problem recently. The problem started by not being able to send or receive any email from Gmail in mail application. Then I noticed that I can't connect with my Yahoo Messenger app and I get error for not bein able to connect to the server. Now I noticed not only that but Also I am not able any more to connect to vpn servers which have domain names as a server address. I changed the domain name to the IP address of the server address and It could connect.

For my yahoo messenger I tried to look at /var/log/system.log and I noticed that there is a error each time I try to connect to Yahoo messenger which is :


Mar 12 21:35:13 Lucifers-MacBook-Air-2.local mDNSResponder[57833]: ERROR: send_all(40) wrote -1 of 4 errno 32 (Broken pipe)
Mar 12 21:35:17 --- last message repeated 4 times ---
Mar 12 21:35:17 Lucifers-MacBook-Air-2.local Terminal[54200]: CGSCopyDisplayUUID: Invalid display 0x0b413df5



Also the problem in mail application exist only for gmail (I use gmail and another email address. One is working and gmail is not), I get error "Couldn't connect to this xxx IMAP/SMTP server" in Connection doctor for mail app for both SMTP and IMAP gmail server as well as iCloud IMAP. (IMAP enabled in Gmail of course) :

INITIATING CONNECTION Mar 12 21:37:22.360 [kCFStreamSocketSecurityLevelNone] -- host:smtp.gmail.com -- port:587 -- socket:0x6000004c09a0 -- thread:0x60800066d8c0

INITIATING CONNECTION Mar 12 21:37:22.360 [kCFStreamSocketSecurityLevelNone] -- host:smtp.gmail.com -- port:587 -- socket:0x6080002cb1a0 -- thread:0x60800066d8c0

INITIATING CONNECTION Mar 12 21:37:22.361 host:imap.gmail.com -- port:143 -- socket:0x0 -- thread:0x60800066d8c0

INITIATING CONNECTION Mar 12 21:37:22.390 host:p08-imap.mail.me.com -- port:993 -- socket:0x0 -- thread:0x608000871f40


So I believe that there is a problem in my mDNSResponder or Bonjour service. The weird thing for me is that it is not working in certain application and certain addresses. I am able to ping 8.8.8.8 or I am able to telnet imap.gmail.com and connect to it.

Here is the system.log for mail app when I try to make gmail account online:


"The operation couldn’t be completed. No route to host"
Mar 12 21:43:18 Lucifers-MacBook-Air-2.local Mail[58050]: [LogSocketErrors] Connecting failed for socket: 0x6080004c11f0, error: Error Domain=NSPOSIXErrorDomain Code=65 "The operation couldn’t be completed. No route to host"
Mar 12 21:43:18 Lucifers-MacBook-Air-2.local Mail[58050]: [LogSocketErrors] Connecting failed for socket: 0x6000004c8180, error: Error Domain=NSPOSIXErrorDomain Code=65 "The operation couldn’t be completed. No route to host"


While I am able to open gmail in my safari or ping and telnet this hosts in terminal.


Any one have any idea?

MacBook Air, OS X Mavericks (10.9.2)

Posted on Mar 12, 2014 1:48 PM

Reply
19 replies

Jun 20, 2014 11:58 AM in response to Albert Sodyl

My logs are littered with this message, they come about once every 3 seconds. I am getting random DNS failures (e.g., google works on and off) and some things won't come up at all. Instructions for clearing DNS cache does nothing other than produce a log entry. Changing to an alternate DNS (e.g., 8.8.8.8) doesn't help either. I presume I'll need to reboot to resolve this, which is unfortunate.

Jul 10, 2014 1:21 PM in response to bl4ckic3

I realized that a fix to this problem seems to be some combination of:

  1. Disabling wifi and killing the mDNSResponder process (i.e. from terminal type "sudo killall mDNSResponder" and enter your password)
  2. Type "sudo killall configd mDNSResponder airportd" from the terminal
  3. Quitting mail and doing 2 or 1


This does fix the problem of retrieving mail, but it does not fix the loads of messages in Console, such as:

7/10/14 10:20:15.424 PM mDNSResponder[47992]: ERROR: send_all(19) wrote -1 of 4 errno 32 (Broken pipe)


I'm not sure of what is causing this, and I've found no way of fixing this.


Hope this helps

Aug 21, 2014 10:29 AM in response to Brethil

I've been getting this problem about every few weeks for a while on my mbpr. (Perhaps since 10.9.2 update?) Currently with OS version 10.9.4. Apps such as Mail, Slack standalone app, and iMessage would randomly be unable to connect. Interestingly with Mail it could connect to my exchange account but not my IMAP or SMTP accounts. My only work-around was to reboot which is a bit too disruptive for me.


I'd never posted before here but wanted to confirm the issue and as well as happily report that Brethil's solution worked for me. Thanks Brethil! Rewrote the steps for my notes, sharing here:


  1. quit mail app & slack app
  2. turn off wifi
  3. sudo killall -HUP mDNSResponder
  4. sudo killall configd mDNSResponder airportd
  5. restart wifi
  6. restart mail & slack, they should connect now.

mDNSResponder Fail on certain applications

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple ID.