Gnus development mailing list
 help / color / mirror / Atom feed
From: Steinar Bang <sb@dod.no>
To: ding@gnus.org
Cc: gmane-discuss@hawk.netfonds.no
Subject: Re: "No DNS server configuration found" when approving spam reports
Date: Fri, 26 Dec 2008 10:18:12 +0100	[thread overview]
Message-ID: <ulju3pa5n.fsf@dod.no> (raw)
In-Reply-To: <87prjgjg5x.fsf@marauder.physik.uni-ulm.de>

[cross-posting to gmane.discuss so that other CVS Gnus using spam
 approvers won't get confused]

>>>>> Reiner Steib <reinersteib+gmane@imap.cc>:

> 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...:-/

(executable-find "nslookup") works, it returns
"c:/Windows/system32/nslookup.exe"

The entire
      (when (executable-find "nslookup")
	(with-temp-buffer
	  (call-process "nslookup" nil t nil "localhost")
	  (goto-char (point-min))
	  (re-search-forward
	   "^Server:[ \t]*\\([0-9]+\\.[0-9]+\\.[0-9]+\\.[0-9]+\\)" nil t)
	  (setq dns-servers) (list (match-string 1))))
returns a (nil)

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))))




  reply	other threads:[~2008-12-26  9:18 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-12-24 20:31 Steinar Bang
2008-12-25 13:07 ` Reiner Steib
2008-12-25 14:40   ` Steinar Bang
2008-12-25 17:52     ` Reiner Steib
2008-12-26  9:18       ` Steinar Bang [this message]
2008-12-26 10:45         ` Steinar Bang
2008-12-26 11:10           ` Steinar Bang
2008-12-26 17:38           ` Reiner Steib
2008-12-27 13:30             ` Steinar Bang
2008-12-27 13:55               ` Steinar Bang
2008-12-28 11:20                 ` Steinar Bang
2008-12-28 14:03                   ` Steinar Bang
2009-01-18 14:29                     ` Lars Magne Ingebrigtsen
2009-01-18 18:48                       ` Steinar Bang
2009-02-08 22:37                     ` Lars Magne Ingebrigtsen
2009-02-09 22:44                       ` Steinar Bang

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=ulju3pa5n.fsf@dod.no \
    --to=sb@dod.no \
    --cc=ding@gnus.org \
    --cc=gmane-discuss@hawk.netfonds.no \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).