From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/56280 Path: main.gmane.org!not-for-mail From: "William M. Perry" Newsgroups: gmane.emacs.gnus.general Subject: Re: Refresh of DNS servers Date: Wed, 04 Feb 2004 11:58:50 -0500 Sender: ding-owner@lists.math.uh.edu Message-ID: <402124CA.2000907@kadath.us> References: <8765epy1v2.fsf@emptyhost.emptydomain.de> <8yjljiu6.fsf@random.localnet.unwireduniverse.com> NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1075917413 312 80.91.224.253 (4 Feb 2004 17:56:53 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 4 Feb 2004 17:56:53 +0000 (UTC) Cc: ding@gnus.org Original-X-From: ding-owner+M4820@lists.math.uh.edu Wed Feb 04 18:56:31 2004 Return-path: Original-Received: from malifon.math.uh.edu ([129.7.128.13]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1AoRGJ-0004Xa-00 for ; Wed, 04 Feb 2004 18:56:31 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.math.uh.edu) by malifon.math.uh.edu with smtp (Exim 3.20 #1) id 1AoREn-0004r8-00; Wed, 04 Feb 2004 11:54:57 -0600 Original-Received: from justine.libertine.org ([66.139.78.221] ident=postfix) by malifon.math.uh.edu with esmtp (Exim 3.20 #1) id 1AoQMl-0004iw-00 for ding@lists.math.uh.edu; Wed, 04 Feb 2004 10:59:07 -0600 Original-Received: from vanaheim.kadath.us (vanaheim.kadath.us [66.135.34.80]) by justine.libertine.org (Postfix) with ESMTP id BFF323A0038 for ; Wed, 4 Feb 2004 10:59:04 -0600 (CST) Original-Received: from 12-222-67-85.client.insightbb.com ([12.222.67.85] helo=kadath.us) by vanaheim.kadath.us with asmtp (TLS-1.0:DHE_RSA_RIJNDAEL_128_CBC_SHA:16) (Exim 4.22) id 1AoQQn-0005yk-BO; Wed, 04 Feb 2004 17:03:17 +0000 User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.6) Gecko/20040113 X-Accept-Language: en-us, en Original-To: angeli@iwi.uni-sb.de In-Reply-To: Precedence: bulk Xref: main.gmane.org gmane.emacs.gnus.general:56280 X-Report-Spam: http://spam.gmane.org/gmane.emacs.gnus.general:56280 Ralf Angeli wrote: >* Derrell Lipman (2004-02-02) writes: > > > >>The name servers are typically listed in /etc/resolv.conf which is one of the >>configuration files for the resolver. The resolver library [see resolver(3)] >>which most applications that needs DNS services links with, only reads its >>configuration files when res_init() is called, which typically occurs only >>when the very first resolver services are required. It's likely not gnus >>that's caching the old nameserver, but rather the resolver library in emacs. >>Since emacs is still running, the resolver library is not reinitializing. I >>don't know of any way to force a reinitialization, although one may exist >>(some signal, possibly). >> >> > >This sounds reasonable. Does anybody have a hint where I could start >to look for this stuff? I grepped the Gnus and Emacs source >directories for "dns", "res_init" and variations of "nameserv" and >"resolv" but this didn't yield a usable result (I only found some >utility functions in `net-utils.el'. Maybe I missed something?). I >also tried to dig into `gnus-group-get-new-news' but got lost >somewhere in the middle. > > You would need to make C level changes. And is (probably?) going to vary from OS to OS. I am pretty sure you can do it on linux by just doing: if (res_state && (res_state->options & RES_INIT)) { res_state->options |= ~RES_INIT; res_init(); } Solaris is similar. There are also some tricks you could play to notice this by enumerating the interfaces and seeing if any of them are dynamically assigned. Hrmm... linux doesn't appear to support that. Solaris does though. ;) -bp