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 11:45:48 +0100 [thread overview]
Message-ID: <utz8rp63n.fsf@dod.no> (raw)
In-Reply-To: <ulju3pa5n.fsf@dod.no>
>>>>> Steinar Bang <sb@dod.no>:
>>>>> 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...:-/
[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...
next prev parent reply other threads:[~2008-12-26 10:45 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
2008-12-26 10:45 ` Steinar Bang [this message]
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=utz8rp63n.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).