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

Mar 12, 2014 2:16 PM in response to bl4ckic3

Hi,


Does this apply ?

http://support.apple.com/kb/HT3789


At OS X 10.6 mDNS (Bonjour) was more closely linked to DNS itself.

If one if Off then the other does not work.


User uploaded file

9:15 pm Wednesday; March 12, 2014


 iMac 2.5Ghz i5 2011 (Mavericks 10.9)
 G4/1GhzDual MDD (Leopard 10.5.8)
 MacBookPro 2Gb (Snow Leopard 10.6.8)
 Mac OS X (10.6.8),
 Couple of iPhones and an iPad

Mar 12, 2014 2:51 PM in response to bl4ckic3

Hi,


In System Preferences > Network > Advanced button > DNS tab do you have any ISP or Public DNS IP numbers listed ?


LAN based 192.x.x.x or 10.x.x.x or those between 172.16 and 172.32.x.x will be your router and not a outside DNS service.



User uploaded file

9:51 pm Wednesday; March 12, 2014


 iMac 2.5Ghz i5 2011 (Mavericks 10.9)
 G4/1GhzDual MDD (Leopard 10.5.8)
 MacBookPro 2Gb (Snow Leopard 10.6.8)
 Mac OS X (10.6.8),
 Couple of iPhones and an iPad

Mar 13, 2014 4:06 PM in response to bl4ckic3

No ideas yet, but i'm getting very similar errors. I'm pretty sure this coincided with installing the latest security update. What's interesting is i'm on 10.8.5. This is the console output when i start connection doctor in mail.


2014-03-13 4:59:49.892 PM mDNSResponder[1903]: ERROR: mDNSPlatformWriteTCP - send Broken pipe

2014-03-13 4:59:49.892 PM mDNSResponder[1903]: mDNSSendDNSMessage: write msg length failed -1/2

2014-03-13 4:59:50.894 PM mDNSResponder[1903]: ERROR: mDNSPlatformWriteTCP - send Broken pipe

2014-03-13 4:59:50.895 PM mDNSResponder[1903]: mDNSSendDNSMessage: write msg length failed -1/2

2014-03-13 4:59:53.902 PM mDNSResponder[1903]: ERROR: mDNSPlatformWriteTCP - send Broken pipe

2014-03-13 4:59:53.902 PM mDNSResponder[1903]: mDNSSendDNSMessage: write msg length failed -1/2

2014-03-13 4:59:56.927 PM mDNSResponder[1903]: ERROR: mDNSPlatformWriteTCP - send Broken pipe

2014-03-13 4:59:56.928 PM mDNSResponder[1903]: mDNSSendDNSMessage: write msg length failed -1/2

2014-03-13 4:59:57.916 PM mDNSResponder[1903]: ERROR: mDNSPlatformWriteTCP - send Broken pipe

2014-03-13 4:59:57.916 PM mDNSResponder[1903]: mDNSSendDNSMessage: write msg length failed -1/2

2014-03-13 5:00:00.088 PM mDNSResponder[1903]: ERROR: mDNSPlatformWriteTCP - send Broken pipe

2014-03-13 5:00:00.088 PM mDNSResponder[1903]: mDNSSendDNSMessage: write msg length failed -1/2

2014-03-13 5:00:00.924 PM mDNSResponder[1903]: ERROR: mDNSPlatformWriteTCP - send Broken pipe

2014-03-13 5:00:00.924 PM mDNSResponder[1903]: mDNSSendDNSMessage: write msg length failed -1/2

2014-03-13 5:00:01.091 PM mDNSResponder[1903]: ERROR: mDNSPlatformWriteTCP - send Broken pipe

2014-03-13 5:00:01.091 PM mDNSResponder[1903]: mDNSSendDNSMessage: write msg length failed -1/2

2014-03-13 5:00:04.098 PM mDNSResponder[1903]: ERROR: mDNSPlatformWriteTCP - send Broken pipe

2014-03-13 5:00:04.098 PM mDNSResponder[1903]: mDNSSendDNSMessage: write msg length failed -1/2

2014-03-13 5:00:07.095 PM mDNSResponder[1903]: ERROR: mDNSPlatformWriteTCP - send Broken pipe

2014-03-13 5:00:07.095 PM mDNSResponder[1903]: mDNSSendDNSMessage: write msg length failed -1/2

2014-03-13 5:00:08.098 PM mDNSResponder[1903]: ERROR: mDNSPlatformWriteTCP - send Broken pipe

2014-03-13 5:00:08.098 PM mDNSResponder[1903]: mDNSSendDNSMessage: write msg length failed -1/2

2014-03-13 5:00:11.105 PM mDNSResponder[1903]: ERROR: mDNSPlatformWriteTCP - send Broken pipe

2014-03-13 5:00:11.105 PM mDNSResponder[1903]: mDNSSendDNSMessage: write msg length failed -1/2


Its worth noting that like you other accounts seem to work fine, no indication of improper DNS settings. As I said this happened after running that latest security update to fix the SSL thing on 10.8.5.


Same thing seems to be happening with calendar:


2014-03-13 5:02:51.465 PM CalendarAgent[517]: [com.apple.calendar.store.log.caldav.queue] [Account refresh failed with error: Error Domain=NSURLErrorDomain Code=-1003 "A server with the specified hostname could not be found." UserInfo=0x7ff7728b2f50 {NSUnderlyingError=0x7ff772b88040 "A server with the specified hostname could not be found.", NSErrorFailingURLStringKey=https://myemail%40gmail.com@calendar.google.com/calendar/dav/myemail%40gmail.com /user///myemail%40gmail.com@calendar.google.com/calendar/dav/myemail%40gmail.com/user/, NSErrorFailingURLKey=https://myemail%40gmail.com@calendar.google.com/calendar/dav/myemail%40gmail.com /user///myemail%40gmail.com@calendar.google.com/calendar/dav/myemail%40gmail.com/user/, AccountName=Gmail, CalDAVErrFromRefresh=YES, NSLocalizedDescription=A server with the specified hostname could not be found.}]

Mar 13, 2014 10:07 PM in response to bl4ckic3

My retina macbook pro is running 10.9 and was showing the same problem. The problem is now gone, i changed nothing on the laptop. On my mac mini server (10.8.5) i did clear the dns cache using this command in terminal "dscacheutil -flushcache".It could be one of two things: one, the problem never was on my end and it was something with google (in my case anyway), or because my mac mini is the DNS server for my local network and resetting its cache did something good.


Another thing i noticed was that it couldn't connect to gmail in safari (both machines) ("could not connect to server at mail.gmail.com" or some such). In fact i couldn't connect to anything google related with safari, even after resetting safari. My console gave similar output as when mail tried to connect. The crazy thing is that firefox connected to gmail properly!

Mar 16, 2014 8:28 AM in response to bl4ckic3

I had similar problems and found a workaround.


I installed 10.9.2 on my desktop and laptop systems, and while at home had no problems. Then while visiting my brother, far from my house and using a different ISP, Safari sometimes would not load some web pages. Sometimes they would. It was really strange. Meanwhile, my sister, using the same ISP as my brother, upgraded her system to 10.9.2 and began having the same sort of problems. It seems something about the nameserver in Mavericks works OK with verizon ISP in California, but not with comporium ISP in North Carolina.


The workaround I found is to optimize the dns function with the open source nameserver optimizer namebench.


https://code.google.com/p/namebench/


Since adding the top three dns addresses recommended by namebench into System Preferences/Network/DNS/DNS Servers, all mypages have loaded rapidly. My sister has not yet used namebench but I suspect it will cure her problems too. Probably a better way to implement the optimizations suggested by namebench would be in the DNS of the router of the LAN. Even if you have no problems, namebench suggests it may improve your Internet browsing experience.


Continuing reading on how to optimally use namebench, I found these recommendations:


Clearing the DNS Cache on Browsers : OpenDNS


Clearing the DNS Cache on Computers and Servers : OpenDNS



Considering all this in retrospect, my guess is that the problems we have experienced result from the DNS function of 10.9.2 working with nameserver caches differently from how it worked in older versions of OS X. I wonder if simply simply clearing the caches as recommeneded above would solve our problems. It would be interesting to hear if anyone finds that deleting the caches resolves the problem of pages not loading, and then using the recommended optimum nameservers produces a further impriovement.

Jun 8, 2014 12:47 AM in response to bl4ckic3

I have the same issue. Can't find a solution for it. Mail Connection Doctor says "Mail was able to connect to the internet", but all the accounts are red. No access to email, even though I can go through Safari just fine.


iCloud stuff is not syncing either, just many errors in the logs like this:


2014-06-08 12:45:32.757 AM mDNSResponder[46260]: ERROR: send_all(70) wrote -1 of 4 errno 32 (Broken pipe)

2014-06-08 12:45:32.758 AM mDNSResponder[46260]: ERROR: send_all(70) wrote -1 of 4 errno 32 (Broken pipe)

2014-06-08 12:45:34.402 AM apsd[88]: tcp_connection_host_start 13302 DNSServiceGetAddrInfo failed: -65568

2014-06-08 12:45:34.402 AM mDNSResponder[46260]: ERROR: send_all(70) wrote -1 of 4 errno 32 (Broken pipe)

2014-06-08 12:45:34.402 AM mDNSResponder[46260]: ERROR: send_all(70) wrote -1 of 4 errno 32 (Broken pipe)

2014-06-08 12:45:34.403 AM mDNSResponder[46260]: ERROR: send_all(70) wrote -1 of 4 errno 32 (Broken pipe)

2014-06-08 12:45:34.403 AM apsd[88]: tcp_connection_host_start 13303 DNSServiceGetAddrInfo failed: -65568

2014-06-08 12:45:34.403 AM mDNSResponder[46260]: ERROR: send_all(70) wrote -1 of 4 errno 32 (Broken pipe)


Didn't have this problem until I updated to 10.9.2 I believe. I hope Apple releases a fix soon. I didn't change anything on my side for things to stop working like this...

Jun 8, 2014 12:22 PM in response to Albert Sodyl

Troubleshooting sending and receiving email messages


Troubleshooting sending email messages


You can also try:


Quit Mail.


Go to Finder and select your user/home folder. With that Finder window as the front window, either select Finder/View/Show View options or go command - J. When the View options opens, check ’Show Library Folder’. That should make your user library folder visible in your user/home folder. Go to Library/Containers/com.apple.mail. Move the folder com.apple.mail to your desktop. You must move the entire folder, not just the contents.


Restart, re-launch Mail and test. If the problem is solved, recreate any required Mail settings and import any emails you want to save from the folder on the desktop. You can then put the folder in the Trash. If the problem remains, return the folder to where you got it replacing the one that is there.


Information learned from Linc Davis. Thanks to leonie for some information contained in this.

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.