From marka@isc.org Mon Jun 19 05:15:27 2017 In-Reply-To: Your message of "Sat, 17 Jun 2017 11:44:11 +0000." X-Spam-Status: No, score=-2.9 required=5.0 tests=ALL_TRUSTED,BAYES_00, RP_MATCHES_RCVD autolearn=ham autolearn_force=no version=3.4.0 X-RT-Interface: API References: content-type: text/plain; charset="utf-8" Message-ID: <20170619051521.DDD837BE20A6@rock.dv.isc.org> X-RT-Original-Encoding: utf-8 Received: from mx.pao1.isc.org (mx.pao1.isc.org [149.20.64.53]) by bugs.isc.org (Postfix) with ESMTP id D618271B5A8 for ; Mon, 19 Jun 2017 05:15:26 +0000 (UTC) Received: from zmx1.isc.org (zmx1.isc.org [149.20.0.20]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx.pao1.isc.org (Postfix) with ESMTPS id B69EA3493C9 for ; Mon, 19 Jun 2017 05:15:24 +0000 (UTC) Received: from zmx1.isc.org (localhost [127.0.0.1]) by zmx1.isc.org (Postfix) with ESMTPS id A8AA816003D for ; Mon, 19 Jun 2017 05:15:24 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by zmx1.isc.org (Postfix) with ESMTP id 9949E160045 for ; Mon, 19 Jun 2017 05:15:24 +0000 (UTC) Received: from zmx1.isc.org ([127.0.0.1]) by localhost (zmx1.isc.org [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id xn1KScIMJQRa for ; Mon, 19 Jun 2017 05:15:24 +0000 (UTC) Received: from rock.dv.isc.org (c27-253-115-14.carlnfd2.nsw.optusnet.com.au [27.253.115.14]) by zmx1.isc.org (Postfix) with ESMTPSA id 5123416003D for ; Mon, 19 Jun 2017 05:15:24 +0000 (UTC) Received: from rock.dv.isc.org (localhost [IPv6:::1]) by rock.dv.isc.org (Postfix) with ESMTP id DDD837BE20A6 for ; Mon, 19 Jun 2017 15:15:21 +1000 (AEST) Delivered-To: bind9-bugs@bugs.isc.org Subject: Re: [ISC-Bugs #45401] DiG 9.11.1-P1 - -6 not working in dig Return-Path: X-Original-To: bind9-bugs@bugs.isc.org Date: Mon, 19 Jun 2017 15:15:21 +1000 X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on mx.pao1.isc.org To: bind9-bugs@isc.org From: "Mark Andrews" RT-Message-ID: Content-Length: 1175 In message , "John Poznicek vi a RT" writes: > nslookup works and defaults to using ipv6 for dns > > nslookup > Default Server: pfsense.local.lan > Address: 2001:470:1f11:9c4::1 We need to update the windows code that retrieves the list of name server addresses from the system from GetNetworkParams to GetAdaptersAddresses based on a little Googling. * GetNetworkParams only returns the IPv4 addresses. * GetAdaptersAddresses returns both IPv4 and IPv6 addresses depending upon the calling arguments. Populating resolv.conf with the nameserver address rather that reading them from the system with GetNetworkParams/GetAdaptersAddresses will let 'dig -6' work. This does have the obvious limitation that the contents are likely to get out of date as the OS will not be updating it. 'dig -6 @' works regardless of the method used to populate the default server list. e.g. dig -6 @f.root-servers.net soa . Note: the nslookup above is Microsoft's version not BIND's. -- Mark Andrews, ISC 1 Seymour St., Dundas Valley, NSW 2117, Australia PHONE: +61 2 9871 4742 INTERNET: marka@isc.org