From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.ciao.gmane.io!not-for-mail From: Robert Pluim Newsgroups: gmane.emacs.bugs Subject: bug#40343: 28.0.50; dns-set-servers fails on IPv6 available Windows Date: Tue, 31 Mar 2020 16:28:36 +0200 Message-ID: References: <86v9mkmwnq.wl--xmue@d1.dion.ne.jp> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="ciao.gmane.io:159.69.161.202"; logging-data="3474"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 40343@debbugs.gnu.org To: Kazuhiro Ito Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Tue Mar 31 16:29:18 2020 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jJHtF-0000oN-NH for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 31 Mar 2020 16:29:17 +0200 Original-Received: from localhost ([::1]:38926 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jJHtE-000083-MJ for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 31 Mar 2020 10:29:16 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:50983) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jJHt0-00007X-Sx for bug-gnu-emacs@gnu.org; Tue, 31 Mar 2020 10:29:03 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1jJHsz-0006Dr-UF for bug-gnu-emacs@gnu.org; Tue, 31 Mar 2020 10:29:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:53427) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1jJHsz-0006Df-OM for bug-gnu-emacs@gnu.org; Tue, 31 Mar 2020 10:29:01 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1jJHsz-0005ks-Kx for bug-gnu-emacs@gnu.org; Tue, 31 Mar 2020 10:29:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Robert Pluim Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 31 Mar 2020 14:29:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 40343 X-GNU-PR-Package: emacs Original-Received: via spool by 40343-submit@debbugs.gnu.org id=B40343.158566492722102 (code B ref 40343); Tue, 31 Mar 2020 14:29:01 +0000 Original-Received: (at 40343) by debbugs.gnu.org; 31 Mar 2020 14:28:47 +0000 Original-Received: from localhost ([127.0.0.1]:36740 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jJHsk-0005kQ-Rg for submit@debbugs.gnu.org; Tue, 31 Mar 2020 10:28:47 -0400 Original-Received: from mail-wr1-f53.google.com ([209.85.221.53]:44311) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jJHsi-0005kC-DW for 40343@debbugs.gnu.org; Tue, 31 Mar 2020 10:28:45 -0400 Original-Received: by mail-wr1-f53.google.com with SMTP id m17so26203004wrw.11 for <40343@debbugs.gnu.org>; Tue, 31 Mar 2020 07:28:44 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:references:date:in-reply-to:message-id :mime-version:content-transfer-encoding; bh=8GUAKmGeM9eFTw2O2ZNa2up5lT8j62DdNQ2svPLYPvs=; b=okTSxhFCRCqf8I3ebWyUC971dPQuU7hQ45qNz92iI6MTzREaolpp7EKDHrsAl85XoX yjGiXCh3kkU0dVMQyD+MgJca7+xRbGmo3tSSKq1pvUEiQgjIlFu02eOHl1trRVuMlkBH ijNqRmkmSEsfjXw1NQ3WNT4WMNWuioSy6tmE/aY/kmCATR/CyW//Fn81PLzNksKcN7uU 37yEbAdhj+Wf58sLZVAIXmdDu4AW/rAFsFYVuobBatil/L05mOfMqTa3Xc8DOEb0SFW6 94MMHSd+aAPsjCVnnZO+JafGsULcstkCbn8evhPjjjMyKRrlrM4890ZQ1iYbFQs1BSut 7ooQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:references:date:in-reply-to :message-id:mime-version:content-transfer-encoding; bh=8GUAKmGeM9eFTw2O2ZNa2up5lT8j62DdNQ2svPLYPvs=; b=rA0tzJgPq/rmjd71qrP4QC97BXaBNmiu47sUkZUvk7XArws7n974Ffqto7zi3h9nn8 4eFmjYLHW3FU4GTREgY4VsXYlO2wTgxi/iaTg7M3Vyiro5D2eqSqASPuJCLysRuGsrmD JFzwJbQ6UIGKQXqeARXjPKw6rC24hNQDAfDkCood33zIgekq9UROeTftSRGvTCa+1lkj ZNaOgV1AjXKwbeXiiS0zSBCpiF5vINW4Jd/A3n/9QwI9SXgXJIy3Cny7UkfAdB94F698 vTmUI+SSwF2fwmt7/0YZtXdwhcMDAlnLiy4qlygKzPuaWLaqjtxqAI2pbLDw3rczskgG CoMA== X-Gm-Message-State: ANhLgQ3H4d1YgDulhJWRpwkRnfwW0HyT99t/fyXc+8uKq0jp3PyQCZTA aWc7QIIRJB31PU6IlfzyQSuJ+xc2 X-Google-Smtp-Source: ADFU+vuCTTxJiuLYPjDF0AMcWJJjUqV/I/SpMJvSo9sB1f5X/oWj1ihcC7rKmdpcUPgXV7jXsLYE5A== X-Received: by 2002:adf:a35a:: with SMTP id d26mr21587101wrb.185.1585664918250; Tue, 31 Mar 2020 07:28:38 -0700 (PDT) Original-Received: from rpluim-mac ([2a01:e34:ecfc:a860:65f2:9a92:2c96:9204]) by smtp.gmail.com with ESMTPSA id s9sm4386103wmc.2.2020.03.31.07.28.37 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 31 Mar 2020 07:28:37 -0700 (PDT) In-Reply-To: <86v9mkmwnq.wl--xmue@d1.dion.ne.jp> (Kazuhiro Ito's message of "Tue, 31 Mar 2020 23:22:33 +0900") X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 209.51.188.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:177913 Archived-At: >>>>> On Tue, 31 Mar 2020 23:22:33 +0900, Kazuhiro Ito = said: >> Does this work for you: >>=20 >> diff --git a/lisp/net/dns.el b/lisp/net/dns.el >> index 78d4827162..fd2ea99ac6 100644 >> --- a/lisp/net/dns.el >> +++ b/lisp/net/dns.el >> @@ -328,7 +328,7 @@ dns-set-servers >> (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) >> + "^Address:[ \t]*\\([0-9]+\\.[0-9]+\\.[0-9]+\\.[0-9]+\\)\\|\\([[= :xdigit:]:]*\\)" nil t) >> (setq dns-servers (list (match-string 1)))))) >> (when (fboundp 'network-interface-list) >> (setq dns-servers-valid-for-interfaces (network-interface-list)))) Kazuhiro> I needed to modify your regexp as below. Ah yes, I got the grouping wrong. Kazuhiro> Additionally, I have Kazuhiro> question that whether we should consider the case nslookup do= esn't Kazuhiro> return DNS server address, i.e. the case that re-search-forwa= rd didn't Kazuhiro> match anything. In that case, (match-string 1) at next line = returns Kazuhiro> inconstant value. But according to docstring of dns-set-serv= ers, Kazuhiro> dns-servers should be set to nil. The dns lookup will fail in either case, no? So I=CA=BCm not sure it really matters. Robert