From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/67983 Path: news.gmane.org!not-for-mail From: Steinar Bang Newsgroups: gmane.emacs.gnus.general Subject: Re: "No DNS server configuration found" when approving spam reports Date: Thu, 25 Dec 2008 15:40:45 +0100 Organization: Probably a good idea Message-ID: References: <8763l8l7y5.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 1230216103 9975 80.91.229.12 (25 Dec 2008 14:41:43 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 25 Dec 2008 14:41:43 +0000 (UTC) To: ding@gnus.org Original-X-From: ding-owner+M16429@lists.math.uh.edu Thu Dec 25 15:42:48 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 1LFrQF-0005SX-KA for ding-account@gmane.org; Thu, 25 Dec 2008 15:42:47 +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 1LFrOb-0003CO-1o; Thu, 25 Dec 2008 08:41:05 -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 1LFrOZ-0003C1-AU for ding@lists.math.uh.edu; Thu, 25 Dec 2008 08:41:03 -0600 Original-Received: from quimby.gnus.org ([80.91.231.51]) by mx1.math.uh.edu with esmtp (Exim 4.69) (envelope-from ) id 1LFrOW-0003Ob-1i for ding@lists.math.uh.edu; Thu, 25 Dec 2008 08:41:03 -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 1LFrOj-0004EI-00 for ; Thu, 25 Dec 2008 15:41:13 +0100 Original-Received: from list by ciao.gmane.org with local (Exim 4.43) id 1LFrOR-0000dk-H2 for ding@gnus.org; Thu, 25 Dec 2008 14:40:55 +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 ; Thu, 25 Dec 2008 14:40:55 +0000 Original-Received: from sb by ti0064a340-0073.bb.online.no with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 25 Dec 2008 14:40:55 +0000 X-Injected-Via-Gmane: http://gmane.org/ Mail-Followup-To: ding@gnus.org Original-Lines: 40 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:W+Y5HMp5FDmKyZt/nOevlgtjbmw= X-Spam-Score: -3.6 (---) List-ID: Precedence: bulk Xref: news.gmane.org gmane.emacs.gnus.general:67983 Archived-At: >>>>> 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. Hm, well... that's why it doesn't work. There is no fallback when /etc/resolv.conf can't be found. [snip!] > Set `dns-servers'? > (setq dns-servers '("192.168.0.1")) Right... but this isn't practical to do on a nomad laptop, where the DNS server usually comes with the DHCP lease. > 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 Address: 10.0.0.138 Name: www.gnus.org Address: 66.135.33.159 (sanitized CR character in the above outout) The DNS server is that of the ADSL router of the home LAN I'm connected to. 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...?