From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/84103 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: Fri, 31 Jan 2014 15:53:19 -0800 Message-ID: <87iosziu8g.fsf@building.gnus.org> References: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1391212474 12621 80.91.229.3 (31 Jan 2014 23:54:34 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 31 Jan 2014 23:54:34 +0000 (UTC) Cc: ding@gnus.org To: Magnus Henoch Original-X-From: ding-owner+M32355@lists.math.uh.edu Sat Feb 01 00:54:36 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 1W9Nut-0002iE-RS for ding-account@gmane.org; Sat, 01 Feb 2014 00:54:36 +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 1W9Nul-0003Cg-DS; Fri, 31 Jan 2014 17:54:27 -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 1W9Nuk-0003CT-CM for ding@lists.math.uh.edu; Fri, 31 Jan 2014 17:54:26 -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 1W9Nuj-00007f-9m for ding@lists.math.uh.edu; Fri, 31 Jan 2014 17:54:26 -0600 Original-Received: from hermes.netfonds.no ([80.91.224.195]) by quimby.gnus.org with esmtp (Exim 4.80) (envelope-from ) id 1W9Nuh-0001tn-Tv for ding@gnus.org; Sat, 01 Feb 2014 00:54:23 +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 1W9NuU-00053a-DG; Sat, 01 Feb 2014 00:54:10 +0100 In-Reply-To: (Magnus Henoch's message of "Tue, 10 Sep 2013 22:02:39 +0100") User-Agent: Gnus/5.13001 (Ma Gnus v0.10) Emacs/24.3.50 (gnu/linux) X-MailScanner-ID: 1W9NuU-00053a-DG MailScanner-NULL-Check: 1391817250.96192@Av867eiEtWe3hPM6K/jcRw X-Spam-Status: No X-Spam-Score: -1.9 (-) List-ID: Precedence: bulk Xref: news.gmane.org gmane.emacs.gnus.general:84103 Archived-At: Magnus Henoch writes: > Thus the patch below. It checks whether the names and IP addresses of > all network interfaces have changed, and if so, rereads /etc/resolv.conf > instead of using the value of dns-servers. What do you think about it? Looks good. I've now applied it to Ma Gnus 0.10. We can factor out the relevant functions to a more general place (if needed) to reuse this in Gnus proper (to reconnect server connections). Or perhaps just keep it in dns.el... -- (domestic pets only, the antidote for overdose, milk.) bloggy blog http://lars.ingebrigtsen.no/