• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: DNS resolution for apps vs Terminal?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: DNS resolution for apps vs Terminal?
      • From: Rick Mann <email@hidden>
References: 
 >DNS resolution for apps vs Terminal? (From: Rick Mann <email@hidden>)
 >Re: DNS resolution for apps vs Terminal? (From: Michael Nickerson <email@hidden>)

  • Prev by Date: Re: KERN_INVALID_ADDRESS
  • Next by Date: Re: KERN_INVALID_ADDRESS
  • Previous by thread: Re: DNS resolution for apps vs Terminal?
  • Next by thread: Re: DNS resolution for apps vs Terminal?
  • Index(es):
    • Date
    • Thread