Date: Wed, 23 Feb 2005 13:34:22 +0200 (EET) From: Valentin Nechayev <netch@netch.kiev.ua> To: FreeBSD-gnats-submit@FreeBSD.org Subject: ports/77957: dns/bind8: BIND tools fail on hosts without IPv6 and NSes with AAAA Message-ID: <200502231134.j1NBYMt9083430@segfault.kiev.ua> Resent-Message-ID: <200502231140.j1NBeGRf093812@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 77957 >Category: ports >Synopsis: dns/bind8: BIND tools fail on hosts without IPv6 and NSes with AAAA >Confidential: no >Severity: serious >Priority: medium >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Wed Feb 23 11:40:16 GMT 2005 >Closed-Date: >Last-Modified: >Originator: Valentin Nechayev >Release: FreeBSD 4.9-RELEASE-p12 >Organization: private >Environment: FreeBSD 4.9-RELEASE-p12 Ports from 2005.02.23.00.00.00 >Description: When quering something from NSes with AAAA (e.g. ns.ripe.net) on host without IPv6 in kernel, dig, host, nslookup fail to fall back to IPv4. This may be random error if NS try order begins with A record. >How-To-Repeat: Screenshot of failure: $ dig @ns.ripe.net -x 193 ns ; <<>> DiG 8.3 <<>> @ns.ripe.net -x ns ; (2 servers found) ;; res options: init recurs defnam dnsrch ;; res_nsend: Protocol not supported ns.ripe.net has IN A which can be used, but wasn't used. >Fix: Add this as patch-ad: --- src/lib/resolv/res_send.c.orig Mon Jun 2 08:59:57 2003 +++ src/lib/resolv/res_send.c Wed Feb 23 12:28:09 2005 @@ -765,7 +765,7 @@ if (EXT(statp).nssocks[ns] < 0) { *terrno = errno; Perror(statp, stderr, "socket(dg)", errno); - return (-1); + return (*terrno == EPROTONOSUPPORT ? 0 : -1); } #ifndef CANNOT_CONNECT_DGRAM /* P.S. This is copy of bin/77937, but for BIND in ports. >Release-Note: >Audit-Trail: >Unformatted:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200502231134.j1NBYMt9083430>