Re: DNS resolution for apps vs Terminal?
Re: DNS resolution for apps vs Terminal?
- Subject: Re: DNS resolution for apps vs Terminal?
- From: Alastair Houghton <email@hidden>
- Date: Tue, 14 Jun 2016 16:41:52 +0100
On 14 Jun 2016, at 15:13, Michael Nickerson <email@hidden> wrote:
>
>> On Jun 14, 2016, at 5:11 AM, Rick Mann <email@hidden> wrote:
>>
>> Just now Safari stopped being able to load facbook.com. So did Chrome. Both reported DNS failures.
>>
>> But dig on the command line, and curl, both succeed.
>>
>> How are these two domains different?
>
> Safari and other apps are using the frameworks to resolve DNS (which, I believe, is ultimately done via mDNSResponder, but I could be wrong on that one),
You’re correct. It does use mDNSResponder (you can actually see the code on Apple’s Open Source site).
> while command line programs are using lower level calls that query the DNS server directly.
dig does its own DNS protocol over ordinary sockets. curl uses c-ares, an open source DNS library.
Kind regards,
Alastair.
--
http://alastairs-place.net
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden