From owner-freebsd-bugs@FreeBSD.ORG Thu Oct 9 02:10:23 2003 Return-Path: Delivered-To: freebsd-bugs@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 24FFB16A4B3 for ; Thu, 9 Oct 2003 02:10:23 -0700 (PDT) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 627C143FDD for ; Thu, 9 Oct 2003 02:10:21 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.12.9/8.12.9) with ESMTP id h999ALFY080186 for ; Thu, 9 Oct 2003 02:10:21 -0700 (PDT) (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.12.9/8.12.9/Submit) id h999ALjx080185; Thu, 9 Oct 2003 02:10:21 -0700 (PDT) (envelope-from gnats) Resent-Date: Thu, 9 Oct 2003 02:10:21 -0700 (PDT) Resent-Message-Id: <200310090910.h999ALjx080185@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Vladimir Kotal Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 3802816A4B3 for ; Thu, 9 Oct 2003 02:07:11 -0700 (PDT) Received: from ns.vol.cz (ns.vol.cz [195.250.128.34]) by mx1.FreeBSD.org (Postfix) with ESMTP id 2466E43FE9 for ; Thu, 9 Oct 2003 02:07:10 -0700 (PDT) (envelope-from lada@ns.vol.cz) Received: from ns.vol.cz (localhost [127.0.0.1]) by ns.vol.cz (8.12.8p1/8.12.8) with ESMTP id h999769O009507; Thu, 9 Oct 2003 11:07:06 +0200 (CEST) (envelope-from lada@ns.vol.cz) Received: (from root@localhost) by ns.vol.cz (8.12.8p1/8.12.8/Submit) id h99975p7009506; Thu, 9 Oct 2003 11:07:05 +0200 (CEST) Message-Id: <200310090907.h99975p7009506@ns.vol.cz> Date: Thu, 9 Oct 2003 11:07:05 +0200 (CEST) From: Vladimir Kotal To: FreeBSD-gnats-submit@FreeBSD.org X-Send-Pr-Version: 3.113 cc: vlada@devnull.cz Subject: bin/57791: dig option -x incorrectly produces ip6.arpa revnibbles addr X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: Vladimir Kotal List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 09 Oct 2003 09:10:23 -0000 >Number: 57791 >Category: bin >Synopsis: dig option -x incorrectly produces ip6.arpa revnibbles addr >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Thu Oct 09 02:10:20 PDT 2003 >Closed-Date: >Last-Modified: >Originator: Vladimir Kotal >Release: FreeBSD 4.8-RELEASE i386 >Organization: >Environment: System: FreeBSD ns.vol.cz 4.8-RELEASE FreeBSD 4.8-RELEASE #0: Tue Jul 8 16:13:20 CEST 2003 xvlasta@ns:/usr/src/sys/compile/NS i386 >Description: Dig incorrectly produces ip6.arpa reverse address when -x option is used. e.g.: dig @ns -x 2001:158:1001::2 PTR +debug produces: ; <<>> DiG 8.3 <<>> @ns -x PTR +debug ; (1 server found) ;; res_nmkquery(QUERY, 2.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.1.0.0.1.0.0.5.1.1.0.0.2.ip6.arpa, IN, PTR) ;; res options: init debug recurs defnam dnsrch ;; res_send() ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 39163 ;; flags: rd; QUERY: 1, ANSWER: 0, AUTHORITY: 0, ADDITIONAL: 0 ;; QUERY SECTION: ;; 2.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.1.0.0.1.0.0.5.1.1.0.0.2.ip6.arpa, type = PTR, class = IN whereas ipv6calc-0.46 produces: ipv6calc --out=revnibbles.arpa 2001:1508:1001::2 No input type specified, try autodetection...found type: ipv6addr 2.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.1.0.0.1.8.0.5.1.1.0.0.2.ip6.arpa. >How-To-Repeat: Run dig with -x option on IPv6 address and compare results with output produced with other tools. >Fix: Don't know of any. Maybe replace code which produces ip6.arpa address with code from ipv6calc ? >Release-Note: >Audit-Trail: >Unformatted: