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

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

>Number:         57791
>Category:       bin
>Synopsis:       dig option -x incorrectly produces revnibbles addr
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-bugs
>State:          open
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Thu Oct 09 02:10:20 PDT 2003
>Originator:     Vladimir Kotal
>Release:        FreeBSD 4.8-RELEASE i386
System: FreeBSD 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

	Dig incorrectly produces reverse address when -x option is 

	dig @ns -x 2001:158:1001::2 PTR +debug 


	; <<>> DiG 8.3 <<>> @ns -x PTR +debug 
	; (1 server found)
	;; res_nmkquery(QUERY,, 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
	;;, type = PTR, class = IN

	whereas ipv6calc-0.46 produces:

	ipv6calc 2001:1508:1001::2
	No input type specified, try autodetection...found type: ipv6addr

	Run dig with -x option on IPv6 address and compare results
	with output produced with other tools.

	Don't know of any. Maybe replace code which produces address 
	with code from ipv6calc ?


More information about the freebsd-bugs mailing list