From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/84087 Path: news.gmane.org!not-for-mail From: Lars Ingebrigtsen Newsgroups: gmane.emacs.gnus.general Subject: Re: dns.el: forget DNS servers in new network Date: Thu, 30 Jan 2014 14:19:15 -0800 Message-ID: <87iot1dsf0.fsf@building.gnus.org> References: <87bo21u3v7.fsf@flea.lifelogs.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1391120439 15061 80.91.229.3 (30 Jan 2014 22:20:39 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 30 Jan 2014 22:20:39 +0000 (UTC) Cc: Magnus Henoch To: ding@gnus.org Original-X-From: ding-owner+M32339@lists.math.uh.edu Thu Jan 30 23:20:46 2014 Return-path: Envelope-to: ding-account@gmane.org Original-Received: from util0.math.uh.edu ([129.7.128.18]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1W8zyX-0005FA-IN for ding-account@gmane.org; Thu, 30 Jan 2014 23:20:45 +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 1W8zyE-0004Or-La; Thu, 30 Jan 2014 16:20:26 -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 1W8zyC-0004OY-QH for ding@lists.math.uh.edu; Thu, 30 Jan 2014 16:20:24 -0600 Original-Received: from quimby.gnus.org ([80.91.231.51]) by mx1.math.uh.edu with esmtps (TLSv1:AES128-SHA:128) (Exim 4.76) (envelope-from ) id 1W8zyB-00030t-Gx for ding@lists.math.uh.edu; Thu, 30 Jan 2014 16:20:24 -0600 Original-Received: from hermes.netfonds.no ([80.91.224.195]) by quimby.gnus.org with esmtp (Exim 4.80) (envelope-from ) id 1W8zyA-0001kF-54 for ding@gnus.org; Thu, 30 Jan 2014 23:20:22 +0100 Original-Received: from [204.14.154.233] (helo=building.gnus.org) by hermes.netfonds.no with esmtpsa (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.72) (envelope-from ) id 1W8zxw-00019M-AQ; Thu, 30 Jan 2014 23:20:08 +0100 In-Reply-To: <87bo21u3v7.fsf@flea.lifelogs.com> (Ted Zlatanov's message of "Sun, 03 Nov 2013 06:22:20 -0500") User-Agent: Gnus/5.130008 (Ma Gnus v0.8) Emacs/24.3.50 (gnu/linux) X-MailScanner-ID: 1W8zxw-00019M-AQ MailScanner-NULL-Check: 1391725208.83053@4ByT6TqK917J0OtNNHgt1w X-Spam-Status: No X-Spam-Score: -1.9 (-) List-ID: Precedence: bulk Xref: news.gmane.org gmane.emacs.gnus.general:84087 Archived-At: Ted Zlatanov writes: > MH> Thus the patch below. It checks whether the names and IP addresses of > MH> all network interfaces have changed, and if so, rereads /etc/resolv.conf > MH> instead of using the value of dns-servers. What do you think about it? > > I like it. I wonder if it can be used more generally to find out if the > network has changed, a pretty common mobile case that can produce > connection timeouts. Yeah, it's a good idea. Gnus should kill off all network connections when the IP address changes. It's not a 100% solution (you may be tethered behind a device that changes address, and they you won't discover the situation because your own IP address doesn't change), but it's better than nothing. However, I wonder whether this could be done more generally? That is, allow functions to "register" actions to be done when the IP address changes, so that we don't have to duplicate this code in several packages... -- (domestic pets only, the antidote for overdose, milk.) bloggy blog http://lars.ingebrigtsen.no/