bin/57791: dig option -x incorrectly produces ip6.arpa revnibbles addr

Vladimir Kotal vlada at devnull.cz
Thu Oct 9 02:10:23 PDT 2003


>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 at 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:


More information about the freebsd-bugs mailing list