From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/67986 Path: news.gmane.org!not-for-mail From: Steinar Bang Newsgroups: gmane.emacs.gnus.general,gmane.discuss Subject: Re: "No DNS server configuration found" when approving spam reports Date: Fri, 26 Dec 2008 11:45:48 +0100 Organization: Probably a good idea Message-ID: References: <8763l8l7y5.fsf@marauder.physik.uni-ulm.de> <87prjgjg5x.fsf@marauder.physik.uni-ulm.de> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1230288411 14122 80.91.229.12 (26 Dec 2008 10:46:51 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 26 Dec 2008 10:46:51 +0000 (UTC) Cc: gmane-discuss@hawk.netfonds.no To: ding@gnus.org Original-X-From: ding-owner+M16432@lists.math.uh.edu Fri Dec 26 11:47:59 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 1LGAEU-00045N-FV for ding-account@gmane.org; Fri, 26 Dec 2008 11:47:54 +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 1LGACp-0007tI-AA; Fri, 26 Dec 2008 04:46:11 -0600 Original-Received: from mx1.math.uh.edu ([129.7.128.32]) by util0.math.uh.edu with esmtps (TLSv1:AES256-SHA:256) (Exim 4.63) (envelope-from ) id 1LGACm-0007su-7L for ding@lists.math.uh.edu; Fri, 26 Dec 2008 04:46:08 -0600 Original-Received: from quimby.gnus.org ([80.91.231.51]) by mx1.math.uh.edu with esmtp (Exim 4.69) (envelope-from ) id 1LGACj-0006GG-21 for ding@lists.math.uh.edu; Fri, 26 Dec 2008 04:46:08 -0600 Original-Received: from main.gmane.org ([80.91.229.2] helo=ciao.gmane.org) by quimby.gnus.org with esmtp (Exim 3.36 #1 (Debian)) id 1LGACw-0001CC-00 for ; Fri, 26 Dec 2008 11:46:18 +0100 Original-Received: from list by ciao.gmane.org with local (Exim 4.43) id 1LGACf-0002zE-3j for ding@gnus.org; Fri, 26 Dec 2008 10:46:01 +0000 Original-Received: from ti0064a340-0073.bb.online.no ([88.90.181.73]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 26 Dec 2008 10:46:01 +0000 Original-Received: from sb by ti0064a340-0073.bb.online.no with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 26 Dec 2008 10:46:01 +0000 X-Injected-Via-Gmane: http://gmane.org/ Mail-Followup-To: ding@gnus.org Original-Lines: 52 Original-X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: ti0064a340-0073.bb.online.no Mail-Copies-To: never User-Agent: Gnus/5.110011 (No Gnus v0.11) Emacs/22.3 (windows-nt) Cancel-Lock: sha1:jI6llAm2bZ2kD+LfNzu782k44Bo= X-Spam-Score: -3.6 (---) List-ID: Precedence: bulk Xref: news.gmane.org gmane.emacs.gnus.general:67986 gmane.discuss:12084 Archived-At: >>>>> Steinar Bang : >>>>> Reiner Steib : >> 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. > It uses query-dns-cached. I've changed it in my copy, I will notify > Lars about that change as well. > Unfortunately it still doesn't work...:-/ [snip!] > Ah... spotted! It should look like this: > (when (executable-find "nslookup") > (with-temp-buffer > (call-process "nslookup" nil t nil "localhost") > (goto-char (point-min)) > (re-search-forward > "^Address:[ \t]*\\([0-9]+\\.[0-9]+\\.[0-9]+\\.[0-9]+\\)" nil t) > (setq dns-servers) (list (match-string 1)))) Now the dns-set-servers function works in isolation. (dns-set-servers) ("10.0.0.138") But the dns-query and dns-query-cached functions still don't work: (dns-query-cached "www.gnus.org") "No DNS server configuration found" Ah... a possible typo on the last line of dns-set-servers: Perhaps (setq dns-servers) (list (match-string 1)))))) should be (setq dns-servers (list (match-string 1))))))) I will rebuild and restart Gnus, and try again. I did a dry run in the *scratch* buffer with a new defun of dns-set-servers and an evaluation of a dns-query-cached query, and I still got the "No DNS server configuration found" message, but I'm trying a complete restart to be sure that no byte compilation stuff is fooling me...