From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Lars Ingebrigtsen Newsgroups: gmane.emacs.devel Subject: Re: Asynchronous DNS resolving Date: Fri, 13 Feb 2015 20:02:18 +1100 Message-ID: <87y4o2mbfp.fsf@building.gnus.org> References: <877fvmffrz.fsf@building.gnus.org> <83siea42sz.fsf@gnu.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1423818729 23273 80.91.229.3 (13 Feb 2015 09:12:09 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 13 Feb 2015 09:12:09 +0000 (UTC) Cc: emacs-devel@gnu.org To: Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Feb 13 10:11:59 2015 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1YMCI2-0001Il-Dh for ged-emacs-devel@m.gmane.org; Fri, 13 Feb 2015 10:11:58 +0100 Original-Received: from localhost ([::1]:54016 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YMCHw-0003he-OL for ged-emacs-devel@m.gmane.org; Fri, 13 Feb 2015 04:11:52 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:48459) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YMCHu-0003hU-0P for emacs-devel@gnu.org; Fri, 13 Feb 2015 04:11:50 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YMCHt-0000r9-0j for emacs-devel@gnu.org; Fri, 13 Feb 2015 04:11:49 -0500 Original-Received: from smtp.syd.comcen.com.au ([203.23.236.77]:1744) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YMCHm-0000hc-VY; Fri, 13 Feb 2015 04:11:43 -0500 Original-Received: from building.gnus.org ([27.96.197.126]) by smtp.syd.comcen.com.au (8.13.4/8.12.9) with ESMTP id t1D92Nk2081474; Fri, 13 Feb 2015 20:02:23 +1100 (EST) In-Reply-To: <83siea42sz.fsf@gnu.org> (Eli Zaretskii's message of "Fri, 13 Feb 2015 10:46:04 +0200") User-Agent: Gnus/5.130012 (Ma Gnus v0.12) Emacs/25.0.50 (gnu/linux) X-comcen-MailScanner-Information: Please contact the ISP for more information X-comcen-MailScanner: Found to be clean X-comcen-MailScanner-SpamCheck: not spam, SpamAssassin (not cached, score=0.119, required 4, AWL 0.02, BAYES_50 0.00, RDNS_NONE 0.10) X-comcen-MailScanner-From: larsi@gnus.org X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 203.23.236.77 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:182997 Archived-At: Eli Zaretskii writes: > Can't you simulate async resolution with timers? Or even by opening a > network-process to the DNS server and talking to it directly (which > can be done asynchronously with filters and sentinels and stuff)? That's what dns.el does, but it suffers from not having access to OS-level funky stuff like possible local caching, and the general difficulty of getting at the current DNS setup on modern machines. Using the C-level resolution functions is the safest best, since libc is really the authority here... -- (domestic pets only, the antidote for overdose, milk.) bloggy blog http://lars.ingebrigtsen.no/