Received: (at submit) by bugs.debian.org; 14 Feb 2001 04:10:00 +0000 From ukai@debian.or.jp Tue Feb 13 22:10:00 2001 Return-path: Received: from palrel1.hp.com [::ffff:156.153.255.242] by master.debian.org with esmtp (Exim 3.12 1 (Debian)) id 14StGS-0007BB-00; Tue, 13 Feb 2001 22:10:00 -0600 Received: from mail.jp.hpl.hp.com (jasmine.jp.hpl.hp.com [15.12.216.3]) by palrel1.hp.com (Postfix) with ESMTP id 58D3AE0C for ; Tue, 13 Feb 2001 20:09:51 -0800 (PST) Received: from lichee.ukai.org.ukai.org (ukai@d1025.jp.hpl.hp.com [15.12.221.25]) by mail.jp.hpl.hp.com (8.9.3/8.9.3 SMKit7.02) with ESMTP id MAA29278 for ; Wed, 14 Feb 2001 12:55:33 +0900 (JST) Date: Wed, 14 Feb 2001 13:10:54 +0900 Message-ID: <87lmr9c3ap.wl@lichee.ukai.org> From: Fumitoshi UKAI To: submit@bugs.debian.org Subject: couldn't resolv by getaddrinfo(AF_INET) on dante-client User-Agent: Wanderlust/2.4.0 (Rio) SEMI/1.14.3 (Ushinoya) FLIM/1.14.2 (Yagi-Nishiguchi) APEL/10.3 Emacs/20.7 (i386-debian-linux-gnu) MULE/4.0 (HANANOEN) Organization: Debian JP Project MIME-Version: 1.0 (generated by SEMI 1.14.3 - "Ushinoya") Content-Type: text/plain; charset=US-ASCII Delivered-To: submit@bugs.debian.org Package: dante-client Version: 1.1.6-1 I couldn't resolv by getaddrinfo() with AF_INET via dante, although AF_UNSPEC works. I can't go out socks by ssh with socksify, since ssh uses getaddrinfo() with AF_INET (default and -4 option) and no way to with AF_UNSPEC. For example, % cat s.c #include #include #include int main(int argc, char *argv[]) { /* arg: */ struct addrinfo hints, *aitop; int gaierr; memset(&hints, 0, sizeof(hints)); hints.ai_family = atoi(argv[3]); hints.ai_socktype = SOCK_STREAM; gaierr = getaddrinfo(argv[1], argv[2], &hints, &aitop); printf("%d %s:%s => %d (%s)\n", atoi(argv[3]), argv[1], argv[2], gaierr, gai_strerror(gaierr)); exit(0); } % cc s.c % ./a.out auric.debian.org 22 0 0 auric.debian.org:22 => 0 (Unknown error) # OK: without socksify, no problem for AF_UNSPEC (0) % ./a.out auric.debian.org 22 2 2 auric.debian.org:22 => 0 (Unknown error) # OK: without socksify, no problem for AF_INET (2) % ./a.out auric.debian.org 22 10 10 auric.debian.org:22 => -2 (Name or service not known) # OK: for AF_INET6 (10), of course error since auric.debian.org has no AAAA % socksify ./a.out auric.debian.org 22 0 0 auric.debian.org:22 => 0 (Unknown error) # OK: with socksify, it also works for AF_UNSPEC (0) % socksify ./a.out auric.debian.org 22 2 2 auric.debian.org:22 => -2 (Name or service not known) # Err: with socksify, unfortunately it failed for AF_INET (2) why? % socksify ./a.out auric.debian.org 22 10 10 auric.debian.org:22 => -2 (Name or service not known) # OK: of course error, with and without AF_INET6 (10) Is this my configuration problem? Where should I check? Regards, Fumitoshi UKAI