From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/67984 Path: news.gmane.org!not-for-mail From: Reiner Steib Newsgroups: gmane.emacs.gnus.general Subject: Re: "No DNS server configuration found" when approving spam reports Date: Thu, 25 Dec 2008 18:52:42 +0100 Message-ID: <87prjgjg5x.fsf@marauder.physik.uni-ulm.de> References: <8763l8l7y5.fsf@marauder.physik.uni-ulm.de> Reply-To: Reiner Steib NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1230227655 1440 80.91.229.12 (25 Dec 2008 17:54:15 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 25 Dec 2008 17:54:15 +0000 (UTC) To: ding@gnus.org Original-X-From: ding-owner+M16430@lists.math.uh.edu Thu Dec 25 18:55:22 2008 Return-path: Envelope-to: ding-account@gmane.org Original-Received: from util0.math.uh.edu ([129.7.128.18]) by lo.gmane.org with esmtp (Exim 4.50) id 1LFuQb-00079Z-R2 for ding-account@gmane.org; Thu, 25 Dec 2008 18:55:22 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.math.uh.edu) by util0.math.uh.edu with smtp (Exim 4.63) (envelope-from ) id 1LFuOc-0003y3-Q2; Thu, 25 Dec 2008 11:53:18 -0600 Original-Received: from mx2.math.uh.edu ([129.7.128.33]) by util0.math.uh.edu with esmtps (TLSv1:AES256-SHA:256) (Exim 4.63) (envelope-from ) id 1LFuOa-0003xl-IQ for ding@lists.math.uh.edu; Thu, 25 Dec 2008 11:53:16 -0600 Original-Received: from quimby.gnus.org ([80.91.231.51]) by mx2.math.uh.edu with esmtp (Exim 4.69) (envelope-from ) id 1LFuOX-0004XU-PM for ding@lists.math.uh.edu; Thu, 25 Dec 2008 11:53:16 -0600 Original-Received: from mail.uni-ulm.de ([134.60.1.11]) by quimby.gnus.org with esmtp (Exim 3.36 #1 (Debian)) id 1LFuOl-0007lk-00 for ; Thu, 25 Dec 2008 18:53:27 +0100 Original-Received: from bridgekeeper.physik.uni-ulm.de (bridgekeeper.physik.uni-ulm.de [134.60.10.175]) by mail.uni-ulm.de (8.14.2/8.14.2) with ESMTP id mBPHrBNf010231 for ; Thu, 25 Dec 2008 18:53:12 +0100 (MET) Original-Received: from localhost (localhost [127.0.0.1]) by bridgekeeper.physik.uni-ulm.de (Postfix) with ESMTP id 4038B13542 for ; Thu, 25 Dec 2008 18:53:11 +0100 (CET) X-Face: .*T0'iU(sujq_j9\J>-d4fg;N/1++U#U$_5ii6k.=|"-n'?5O:Hyz&wi'-!I~,}7~GgT=0S /&-R5sbkNy5+Xo1y{Tw2KKxi@Xh"g@]Qc|.U<*]WDd)qvGowFDvfU1F]{EDho:7P0@|oOD=Bc{K4?> WP68K[Mx:}=`ZT'6g4'f+g?;`vri2!)xGy}3:=l'(/Cea0l4lo^H5#@/Z3ev Mail-Followup-To: ding@gnus.org In-Reply-To: (Steinar Bang's message of "Thu, 25 Dec 2008 15:40:45 +0100") User-Agent: Gnus/5.110011 (No Gnus v0.11) Emacs/22.1 (gnu/linux) X-DCC-Misty-Metrics: poseidon 1170; Body=1 Fuz1=1 Fuz2=1 X-Virus-Scanned: by amavisd-new X-Spam-Score: -2.6 (--) List-ID: Precedence: bulk Xref: news.gmane.org gmane.emacs.gnus.general:67984 Archived-At: On Thu, Dec 25 2008, Steinar Bang wrote: >>>>>> Reiner Steib : > >> I don't think Windows has /etc/resolv.conf, > > That's putting the finger on the problem. Thanx! > >> so I think it is supposed to work. Oops, s/is/isn't/ of course. >> I'm not sure how to get the address of the DNS server on Windows; >> probably `nslookup www.gnus.org' will show it. > > Indeed it does. `M-! nslookup www.gnus.org' right now gives me the output: > > Non-authoritative answer:^M > Server: home.lan [...] > I guess a fallback to dns-parse-resolv-conf would be to run nslookup and > parse the output...? Of course, then the function should be renamed to > reflect what it's doing. > E.g. dns-parse-resolv-conf-or-parse-nslookup-output or something...? Please try the current code: * dns.el (dns-set-servers): Renamed from dns-parse-resolv-conf. Call nslookup if resolv.conf isn't available. (dns-query): Rename from query-dns. (dns-query-cached): Rename from query-dns-cached. Does spam-gmane.el use the functions `query-dns' or `query-dns-cached'? Then they must be renamed there. Bye, Reiner. -- ,,, (o o) ---ooO-(_)-Ooo--- | PGP key available | http://rsteib.home.pages.de/