X-Recipient: archive-cygwin AT delorie DOT com DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 86103385AFBD DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cygwin.com; s=default; t=1690564662; bh=L8r1/XzjJKWyiGO8DmQ5pzzoB+3TkqEgtfKUOkEZ98w=; h=To:Subject:Date:References:In-Reply-To:List-Id:List-Unsubscribe: List-Archive:List-Post:List-Help:List-Subscribe:From:Reply-To: From; b=NIRc9fdWveISLOge+NLLkhI8I5jc70GTfTrmV11fVpQeXCL3XurCaZPumUkATmnHS oDr+gOnla1a+ElndBhwMnbs/ts4FRB7YW/aIHcwlEJqg6F4XRq5/pFKtwkCANE1Zwu yK0ALf2WfD+QKLob2rHqTOwMSwf0uID+i/ZLSqak= X-Original-To: cygwin AT cygwin DOT com Delivered-To: cygwin AT cygwin DOT com DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 176373858CDA X-SBRS-Extended: Low X-IronPortListener: ces-out X-IronPort-AV: E=Sophos;i="6.01,238,1684814400"; d="scan'208";a="440673597" ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=FzktHYaD/YK8P1f/iP1aEzScWrdP/1LyDQ7XxyszU9vrdSQU/UII7k3/U+ouNAbiK3qlK3zGmB6TXoveKCQ7VrFYB++XDf44Nf48nb6T051bqR7fXjaBXJvolOO22Fnq0W2P2J8Yu+SIT+ildIx4MXTmtM6tIAu4e10UNiApXEflg7G32UEstPoDrUXXPgt/1jX2vNih5OdwRC0x/yB/gCO+Ese1/vghATEC8/m0OlhVn8dkDNqillOUjFvQ0PFjfBAu9M5oRTPtUMa7HcRs4nYSeHdBbew0x6spXM6iXsZVz1RMIs6UaqZznNmYLL+zQFBv8ne7TUUef6k6RCyhKQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=t8OpkAxCP26zIuK2JVvVPZc0uwieEQWUC73mKx7fzcs=; b=VfBgoZh4jRc6/mKcxQ14mwHYsC9u1zFAj1pWEDhtvQ3coswNkYRr2uEUlfYUdMSVCjM/tQOskFoXLwprAGIH7FZUpFp5usB3AM67iKxeKeewORSPh+UxOfCbCZKiXei7qfxd/Gv7kCwd+nkCPJzFJqmDj1IUzHtlma6ZDtFcxF1bBTdLnOrfX0hT0sCgV/oHoQDo0YsDlUcWxxsofV7CSk2hC7Rm5cPQFxuESsBgBp4uyGwxbhaWvdfHqV27UMYgMrjWrN9kT1PfNwB7Y9M8c5RK+4gHbKT4/z6xI2R14m2EGJwMMiCoCNgPQKyHIr0i4TnRiTkvynlM8hka4NWTUg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=ncbi.nlm.nih.gov; dmarc=pass action=none header.from=ncbi.nlm.nih.gov; dkim=pass header.d=ncbi.nlm.nih.gov; arc=none To: Andrew Schulman , "cygwin AT cygwin DOT com" Subject: RE: [EXTERNAL] dig and host don't work in IPv6 Thread-Topic: [EXTERNAL] dig and host don't work in IPv6 Thread-Index: AQHZwWxwZmyT0E0AyUa3g8KNGeFraK/PY0KggAADOkA= Date: Fri, 28 Jul 2023 17:16:35 +0000 Deferred-Delivery: Fri, 28 Jul 2023 17:16:24 +0000 Message-ID: References: <6hi7cilufpjnc4u968imrl826rk0n88hsc AT 4ax DOT com> In-Reply-To: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-ms-publictraffictype: Email x-ms-traffictypediagnostic: DM8PR09MB7095:EE_|BLAPR09MB6562:EE_ x-ms-office365-filtering-correlation-id: b42c2782-1f4f-42bd-391c-08db8f8e74de x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: a2lll8fHXdgO3SdlFu50WHOqev2ZAJt5RhJTQNlF7pXXvWWb24YtNM7WrzOgaoLzyX1RVOZkAjMmphtbKVFenLXZXoZy/89EuxNYy5pCf6YJkIqQ1tR4BHQwCFZdHT+RD+gfzHVjUnnKx/CEVD2nxO3xzwAAytOrVpZlGHl4+rPF0wU2k+VoIU/hvkl84VmoJsCqd4us8/RV0eOdbYe1LrknNi6mls242ydpcgdJ2/1R8JaC8yTsa1sJMuEmlPxR/+qBfI8pmZ4qvRbtGQrv1KhKKGdimirK3B67fS3FDiV5AkmLevOEMiJfYt7uDe5x06XYDqaM/Ex0XkDQcho4MiJepmwuAFtzoXNVrxGeyE48hb1VQEw7RvnQAI9fGi4z6wR/hGLYC6dmteQyi6jGjWrrxLb1HWGIx+AvEOSpMPxzrNuXScBWxbi9f1nsXZGSpxLrDaSwyjp69HPhnDeqCZM/bDFh3/xR+Iuzes4cXqc8z0Lq4TmipCIbqtTxSKnW1jAqN6ZToxG3M6h57PF7kpWte926rsPBDOJd2HBBd4GNX0ytGfWMkJEZ5GDKbCzL4hLdMXo5x9rVvFeLgizXA8ZN1Gx2aCB7vdUI8PlFVJu/okJ0hmhuafaoXC3JoXp/ x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:DM8PR09MB7095.namprd09.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230028)(4636009)(366004)(451199021)(83380400001)(38070700005)(2906002)(86362001)(33656002)(55016003)(38100700002)(122000001)(9686003)(26005)(8936002)(8676002)(110136005)(498600001)(7696005)(66946007)(76116006)(64756008)(66556008)(66446008)(66476007)(6666004)(71200400001)(2940100002)(186003)(5660300002)(52536014)(6506007); DIR:OUT; SFP:1102; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?us-ascii?Q?DqPAUIWrjTz2PRd7h3BCPDZfdU85oAE9/xTo3nRv8L+bVivFq6cAE8OCsS/v?= =?us-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61Wh4NpXO38rE/pu8mvpQen/+DUPQnNX9?= =?us-ascii?Q?X1ii9jVNuduNq5OL7GhMqt94YCP1C++7lrwyNpLibp8dteHRSdSfxqPm82B5?= =?us-ascii?Q?fPXVHo0/JOk+HxRp08YnxThaCeT5Ye4sIPMSSN5y1SZgcTdIziJ4TyqN2tjL?= =?us-ascii?Q?VlZNgF5znViPTQLDKZ5twwGBhJqwgiEehjFeMZv90DZ2nEkrOjZPbB8cR1O4?= =?us-ascii?Q?UY4f9UEjF2vDZD6S/6gAYcx4/WJWErKqtL6RtOIo5HqCdA3Bl8D3/wCtMUyg?= =?us-ascii?Q?FcIDG2hPhXsgtF6TV2ZjTh6YgXCrzSlD3trsSSsjTugHfMKe3AduHAbHldkH?= =?us-ascii?Q?O49LfGq8emXu0dOE4mXcCq0CCbGJmMUPaSyYvdsauvQsDLCFwROxt7pZa4kG?= =?us-ascii?Q?QiQTiaS7mvKKFjRoO0TVqrAe0dJYob7moU+zl7U6/cXKVq+CAe03Gq4vGKEa?= =?us-ascii?Q?38TZIRslTMXhOnVlkk/43wSM0ZVqRTBQdXDRz1V5HRWip8nsuhT+O1Ckp0wf?= =?us-ascii?Q?T39PLJjva4AJL4oFmqLIFL0psBvB2a3NkWldHe8WEcNFKasgRPHvu3s7EJOU?= =?us-ascii?Q?/QxDXlACZ2POj7zfYS8P6ZIe9pRCc3S+U/P0QfFX3ExHgbJDUVRaDDHzDDnF?= =?us-ascii?Q?5DfWPj0FzAjG+MmfwKo=3D?= MIME-Version: 1.0 X-MS-Exchange-AntiSpam-ExternalHop-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-ExternalHop-MessageData-0: 7tQeyX8THlC6tXOYDutcnYc1xdsNlwC1e2aij6YZVb9fZJ2afNFZ718KYqzQV31x8czxabilHFo3WhjAgaeLHj2wrv5RQ0x35v0q7aSBA6rnX/ysG6Tsr8u4/jALsOrAcDQEWRHIhjmzH/33MyDOck4W5ABZUxAKSlFfsXDvUt3h8P8/sKlYsC27U0pWBPAcEzSmJpehX3aez8QQBDhpI4H/P+MpNQGxu3aNQID/mvIMCPBR755pZA6eMXlu7VQeCublsuN5INfwIExmKUteFwoTQHLRfad5EbteE46Ta0wuqVeorPYPBD3yO3pWgEmQJ1y7p2EILXWOoznlMiZmQDg4rVHkvR2NdmM9VjLjInFVd788IFdKpsjpKUbvaN0u/HLvvTTfWIja3XDf1h5cShqQRf5GWcimWD2Px9Z5QYNBNQKSqMnRUOLx+9PF26LHoXVYIhXHy1qyb1AgsYpLlypZ/IVp8CB0W17GhO3C8wqZwgEypoCM2IMyDrr1OkZUlzm7N4Q6pdqmKp4inJ1PdZjTst0HQsbvFZvWbUZBZ7LG7YrQIDeMoTs0tnNfq8D2I2cG/1AHCeoPwi0XWqMDq9r4QUw0AIImu47X/BFV6b1gPGpQlOJ8Bl/1iOILW3auoFUXcQYi7ptT/Ptehx03y7yr68eeeNYdSI3O3WqfPCq5EGt5AAwUnwHoreBZ04OvCPqy8p/7aycPUGNlThlUZCZDSgfIn9dj4ugbG+qS3ZyaSo/p1qyNR7BX2re5ho8iaLqEJmCWOwyfLU9Q+xsrQmwp18UF5joY9iyFdC8OqSI6fL2rugVEKgHd9P73kxwR1+C4oMUt5gqLcg9aAopcTMXNM8+Yu0mBclZwfWK7GIo= X-OriginatorOrg: ncbi.nlm.nih.gov X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: DM8PR09MB7095.namprd09.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: b42c2782-1f4f-42bd-391c-08db8f8e74de X-MS-Exchange-CrossTenant-originalarrivaltime: 28 Jul 2023 17:17:01.1603 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 14b77578-9773-42d5-8507-251ca2dc2b06 X-MS-Exchange-Transport-CrossTenantHeadersStamped: BLAPR09MB6562 X-Spam-Status: No, score=-1.7 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_EF, KAM_NUMSUBJECT, SPF_PASS, TXREP, T_SCC_BODY_TEXT_LINE, T_SPF_HELO_PERMERROR autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org X-BeenThere: cygwin AT cygwin DOT com X-Mailman-Version: 2.1.29 List-Id: General Cygwin discussions and problem reports List-Archive: List-Post: List-Help: List-Subscribe: , From: "Lavrentiev, Anton \(NIH/NLM/NCBI\) \[C\] via Cygwin" Reply-To: "Lavrentiev, Anton \(NIH/NLM/NCBI\) \[C\]" Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "Cygwin" > It may be sort of a limitation (IIRC, in Cygwin's minires) but: > > Should I be doing something differently? Or is it a bug? > > the host and dig commands no longer work Reading your question again, I don't think Cygwin's minires limitation (if any) can be at play here because IIRC neither dig nor host (as actually a specialization of dig) use the resolver API but work directly at the DNS protocol level... OTOH, they probably are looking at the nsaddr section of the resolver context structure to see what INET6 nameservers are available -- and they don't see any in there, that's why they fail?.. These are just my assumptions, though. Are your [other] applications (that use the resolver API, with the osquery option, as suggested previously) able to resolve IPv6 addresses? Anton Lavrentiev Contractor NIH/NLM/NCBI Cygwin's /usr/include/resolv.h has only IPv4 entries for nameservers: struct __res_state { int retrans; /* retransmition time interval */ int retry; /* number of times to retransmit */ u_long options; /* option flags - see below. */ int nscount; /* number of name servers */ struct sockaddr_in nsaddr_list[MAXNS]; /* address of name server */ // <<<=== IPv4 only #define nsaddr nsaddr_list[0] /* for backward compatibility */ u_short id; /* current message id */ char *dnsrch[MAXDNSRCH+1]; /* components of domain to search */ char defdname[256]; /* default domain (deprecated) */ u_long pfcode; /* RES_PRF_ flags - see below. */ unsigned ndots:4; /* threshold for initial abs. query */ unsigned nsort:4; /* number of elements in sort_list[] */ char unused[3]; struct { struct in_addr addr; u_int32_t mask; } sort_list[MAXRESOLVSORT]; res_send_qhook qhook; /* query hook */ res_send_rhook rhook; /* response hook */ int res_h_errno; /* last one set for this context */ int _vcsock; /* PRIVATE: for res_send VC i/o */ u_int _flags; /* PRIVATE: see below */ union { /* On an 32-bit arch this means 512b total. */ char pad[72 - 3*sizeof (int) - 2*sizeof (void *)]; struct { u_int16_t nscount; u_int16_t nstimes[MAXNS]; /* ms. */ int nssocks[MAXNS]; struct __res_state_ext *ext; /* extention for IPv6 */ } _ext; } _u; }; -- Problem reports: https://cygwin.com/problems.html FAQ: https://cygwin.com/faq/ Documentation: https://cygwin.com/docs.html Unsubscribe info: https://cygwin.com/ml/#unsubscribe-simple