From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: ai_flags in calls to getaddrinfo Date: Sun, 03 Jan 2021 18:00:41 +0200 Message-ID: <83czymc8nq.fsf@gnu.org> References: <83sg7mggls.fsf@gnu.org> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="25462"; mail-complaints-to="usenet@ciao.gmane.io" Cc: emacs-devel@gnu.org To: Robin Tarsiger Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Sun Jan 03 17:01:59 2021 Return-path: Envelope-to: ged-emacs-devel@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kw5pP-0006WZ-AG for ged-emacs-devel@m.gmane-mx.org; Sun, 03 Jan 2021 17:01:59 +0100 Original-Received: from localhost ([::1]:42242 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kw5pO-0008HH-CH for ged-emacs-devel@m.gmane-mx.org; Sun, 03 Jan 2021 11:01:58 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:33066) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kw5oO-0007if-Ba for emacs-devel@gnu.org; Sun, 03 Jan 2021 11:00:56 -0500 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:44085) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kw5oN-0002Kf-Vp; Sun, 03 Jan 2021 11:00:56 -0500 Original-Received: from 84.94.185.95.cable.012.net.il ([84.94.185.95]:1372 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1kw5oM-0002Ix-Nd; Sun, 03 Jan 2021 11:00:55 -0500 In-Reply-To: (message from Robin Tarsiger on Thu, 31 Dec 2020 16:40:18 -0600) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.io gmane.emacs.devel:262366 Archived-At: > From: Robin Tarsiger > Cc: emacs-devel@gnu.org > Date: Thu, 31 Dec 2020 16:40:18 -0600 > > does it happen with all names, including for instance "he.net" or > "ipv6.google.com" It does: With AI_ALL and AI_V4MAPPED flags: (network-lookup-address-info "he.net") => ([216 218 236 2 0] [8193 1136 0 1283 0 0 0 2 0]) (network-lookup-address-info "he.net" 'ipv6) => ([0 0 0 0 0 65535 55514 60418 0]) (network-lookup-address-info "ipv6.google.com") => nil: WSANO_DATA error (network-lookup-address-info "ipv6.google.com" 'ipv6) => nil: WSAHOST_NOT_FOUND error Without the AI_* flags: (network-lookup-address-info "he.net") => ([216 218 236 2 0]) (network-lookup-address-info "he.net" 'ipv6) => nil: WSANO_DATA error (network-lookup-address-info "ipv6.google.com") => nil: WSAHOST_NOT_FOUND error (network-lookup-ddress-info "ipv6.google.com" 'ipv6) => nil: WSANO_DATA error Note the difference in he.net resolution with and without the 'ipv6 argument, and also the behavior of ipv6.google.com with the ipv6 argument. Interesting, no? > What about "localhost"? As I said, localhost works the same with and without the AI_* flags. I get: (network-lookup-address-info "localhost") => ([0 0 0 0 0 0 0 1 0] [127 0 0 1 0]) (network-lookup-address-info "localhost" 'ipv6) => ([0 0 0 0 0 0 0 1 0]) > >> Does it have any IPv6 addresses configured, or no? What is > >> its resolver configuration like? > > > > No idea. If you tell me how to find out, I will try. This system is > > behind firewalls up the kazoo, so it could be something essential for > > IPv6 DNS is blocked or intentionally disabled. > > If you run 'ipconfig/all' from a command line (which, if you are not > familiar, you can launch by running 'cmd' from the 'Run' dialog, > which in turn can be accessed through the Windows+R shortcut), it > should display a bunch of information about active network connections, > including local IP addresses and DNS resolver addresses. Here's the result, with some fields redacted: Windows IP Configuration Host Name . . . . . . . . . . . . : (redacted) Primary Dns Suffix . . . . . . . : (redacted) Node Type . . . . . . . . . . . . : Hybrid IP Routing Enabled. . . . . . . . : No WINS Proxy Enabled. . . . . . . . : No DNS Suffix Search List. . . . . . : (redacted) Ethernet adapter Ethernet: Connection-specific DNS Suffix . : (redacted) Description . . . . . . . . . . . : Realtek PCIe GbE Family Controller Physical Address. . . . . . . . . : 6C-4B-90-A3-36-AB DHCP Enabled. . . . . . . . . . . : Yes Autoconfiguration Enabled . . . . : Yes Link-local IPv6 Address . . . . . : fe80::e855:89df:21cc:1554%7(Preferred) IPv4 Address. . . . . . . . . . . : 10.99.32.1(Preferred) Subnet Mask . . . . . . . . . . . : 255.255.252.0 Lease Obtained. . . . . . . . . . : Sun 27 Dec 2020 09:20:18 Lease Expires . . . . . . . . . . : Wed 06 Jan 2021 21:20:19 Default Gateway . . . . . . . . . : 10.99.35.254 DHCP Server . . . . . . . . . . . : 10.1.20.36 DHCPv6 IAID . . . . . . . . . . . : 107760528 DHCPv6 Client DUID. . . . . . . . : 00-01-00-01-25-C0-F1-1B-6C-4B-90-A3-36-AB Thanks.