Subject: bin/19887: "route get -inet6" fails to do AAAA lookups
To: None <>
From: Frederick Bruckman <>
List: netbsd-bugs
Date: 01/17/2003 08:37:03
>Number:         19887
>Category:       bin
>Synopsis:       "route get -inet6" fails to do AAAA lookups
>Confidential:   no
>Severity:       serious
>Priority:       high
>Responsible:    bin-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Fri Jan 17 06:38:01 PST 2003
>Originator:     Frederick Bruckman
>Release:        NetBSD 1.6_STABLE
System: NetBSD 1.6_STABLE NetBSD 1.6_STABLE
Thu Jan 16 09:50:47 CST 2003
s/src-release/sys/arch/i386/compile/TAUTOLOGY i386
Architecture: i386
Machine: i386
Kernel, userland built from January 16, 04:00GMT sources.
	On 1.6_STABLE, "route get -inet6" fails to do AAAA lookups. Observe:

Script started on Fri Jan 17 08:18:55 2003
fredb@tautology# route get -inet6 bad value
fredb@tautology# dig aaaa

; <<>> DiG 8.3 <<>> aaaa 
;; res options: init recurs defnam dnsrch
;; got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 2
;; flags: qr rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 5, ADDITIONAL: 8
;;, type = AAAA, class = IN

;; ANSWER SECTION:         9h5m43s IN AAAA  2001:4f8:4:b:2e0:81ff:fe21:6563

;; AUTHORITY SECTION:             8h48m57s IN NS             8h48m57s IN NS             8h48m57s IN NS             8h48m57s IN NS             8h48m57s IN NS

;; ADDITIONAL SECTION:          8h48m57s IN A       1d8h46m46s IN A       1d8h46m46s IN A       1d8h46m46s IN A       1d8h46m46s IN A   1d8h48m57s IN A   1d8h48m57s IN A   1d8h48m57s IN A

;; Total query time: 3 msec
;; FROM: to SERVER: default --
;; WHEN: Fri Jan 17 08:19:22 2003
;; MSG SIZE  sent: 32  rcvd: 311

fredb@tautology# route get -inet6 2001:4f8:4:b:2e0:81ff:fe21:6563
   route to:
destination: 2001::
       mask: ffff::
 local addr:
  interface: gif2
 recvpipe  sendpipe  ssthresh  rtt,msec    rttvar  hopcount      mtu     expire
       0         0         0         0         0         0         0         0 
fredb@tautology# exit
Script done on Fri Jan 17 08:20:11 2003

	[The angle brackets are probably going to be mangled by send-pr, but
	there should be enough to get the point across.]

	As above.
	The only work-around is to use numeric addresses. This is highly
	inconvenient. It works correctly on current, so all there is to do
	is to identify the required pull-ups.