Date: Thu, 9 Oct 2003 11:07:05 +0200 (CEST) From: Vladimir Kotal <vlada@devnull.cz> To: FreeBSD-gnats-submit@FreeBSD.org Cc: vlada@devnull.cz Subject: bin/57791: dig option -x incorrectly produces ip6.arpa revnibbles addr Message-ID: <200310090907.h99975p7009506@ns.vol.cz> Resent-Message-ID: <200310090910.h999ALjx080185@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>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:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200310090907.h99975p7009506>