From lada@ns.vol.cz Thu Oct 9 02:07:11 2003 Return-Path: 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 Reply-To: Vladimir Kotal To: FreeBSD-gnats-submit@freebsd.org Cc: vlada@devnull.cz Subject: dig option -x incorrectly produces ip6.arpa revnibbles addr X-Send-Pr-Version: 3.113 X-GNATS-Notify: >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: closed >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Thu Oct 09 02:10:20 PDT 2003 >Closed-Date: Wed Nov 03 21:38:49 GMT 2004 >Last-Modified: Wed Nov 03 21:38:49 GMT 2004 >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: State-Changed-From-To: open->closed State-Changed-By: ceri State-Changed-When: Wed Nov 3 21:38:33 GMT 2004 State-Changed-Why: No longer a problem on 4.10. http://www.freebsd.org/cgi/query-pr.cgi?pr=57791 >Unformatted: