From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: peder@klingenberg.no (Peder O. Klingenberg) Newsgroups: gmane.emacs.bugs Subject: bug#26820: 26.0.50; DNS mode and IPv6 reverse zones Date: Sun, 07 May 2017 20:51:03 +0200 Message-ID: NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: blaine.gmane.org 1494183133 29063 195.159.176.226 (7 May 2017 18:52:13 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sun, 7 May 2017 18:52:13 +0000 (UTC) To: 26820@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sun May 07 20:52:10 2017 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1d7RHs-0007Qe-2c for geb-bug-gnu-emacs@m.gmane.org; Sun, 07 May 2017 20:52:08 +0200 Original-Received: from localhost ([::1]:56454 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1d7RHx-0000lc-AC for geb-bug-gnu-emacs@m.gmane.org; Sun, 07 May 2017 14:52:13 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:57995) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1d7RHp-0000gn-Cn for bug-gnu-emacs@gnu.org; Sun, 07 May 2017 14:52:06 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1d7RHm-0006uF-BC for bug-gnu-emacs@gnu.org; Sun, 07 May 2017 14:52:05 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:34251) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1d7RHm-0006uB-7s for bug-gnu-emacs@gnu.org; Sun, 07 May 2017 14:52:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1d7RHm-0004xR-2U for bug-gnu-emacs@gnu.org; Sun, 07 May 2017 14:52:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: peder@klingenberg.no (Peder O. Klingenberg) Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 07 May 2017 18:52:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 26820 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.149418310019020 (code B ref -1); Sun, 07 May 2017 18:52:01 +0000 Original-Received: (at submit) by debbugs.gnu.org; 7 May 2017 18:51:40 +0000 Original-Received: from localhost ([127.0.0.1]:60683 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1d7RHQ-0004wi-El for submit@debbugs.gnu.org; Sun, 07 May 2017 14:51:40 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:38697) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1d7RHO-0004wW-SV for submit@debbugs.gnu.org; Sun, 07 May 2017 14:51:39 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1d7RHI-0006q4-SZ for submit@debbugs.gnu.org; Sun, 07 May 2017 14:51:33 -0400 Original-Received: from lists.gnu.org ([2001:4830:134:3::11]:42219) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1d7RHI-0006px-Ow for submit@debbugs.gnu.org; Sun, 07 May 2017 14:51:32 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:57898) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1d7RHH-0000di-Fn for bug-gnu-emacs@gnu.org; Sun, 07 May 2017 14:51:32 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1d7RHE-0006ov-ER for bug-gnu-emacs@gnu.org; Sun, 07 May 2017 14:51:31 -0400 Original-Received: from tarrant.klingenberg.no ([80.91.231.253]:44213) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1d7RHE-0006ma-7T for bug-gnu-emacs@gnu.org; Sun, 07 May 2017 14:51:28 -0400 Original-Received: from 179.51-175-138.customer.lyse.net ([51.175.138.179] helo=modesty.local) by tarrant.klingenberg.no with esmtpsa (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.80) (envelope-from ) id 1d7RGx-0007Xh-4g for bug-gnu-emacs@gnu.org; Sun, 07 May 2017 20:51:17 +0200 Original-Received: by modesty.local (Postfix, from userid 502) id 49D7717F6469; Sun, 7 May 2017 20:51:03 +0200 (CEST) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x [fuzzy] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x 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: 208.118.235.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.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:132357 Archived-At: Last week I was trying to set up reverse delegations for some newly assigned IPv6 address space. It was... painful. IPv6 addresses are ugly enough in their normal format, but when used in a reverse zone, they need to be converted to individual nibbles separated by dots, reversed, and have .ip6.arpa. appended. The result is less than human friendly. So I've written a new feature for dns-mode.el that allows me to mostly relate to the normal IPv6 format, and convert automatically to the nibble format. I can for instance do this in a (part of a) zone file, where I'm only interested in defining hosts in the last 16 bits of the address: $ORIGIN 2a0a:3dc0:10::/112 ::1/-112 IN PTR www.example.com. And then, by pressing C-c C-e on each of the IPv6 addresses, end up with the necessary $ORIGIN 0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.1.0.0.0.c.d.3.a.0.a.2.ip6.arpa. 1.0.0.0 IN PTR www.example.com. Assuming I'm doing this as I type, I can then yank the last standard-format address, do a minimal edit, C-c C-e again, and continue typing to define the next PTR record. I'm hoping this sounds useful to other people as well. I'll pass along the patch as soon as I get a bug# to attach to it. :)