From unknown Tue Jun 24 13:51:46 2025 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.509 (Entity 5.509) Content-Type: text/plain; charset=utf-8 From: bug#14779 <14779@debbugs.gnu.org> To: bug#14779 <14779@debbugs.gnu.org> Subject: Status: 24.3; Failure to resolve IPv6 addresses in make-network-process Reply-To: bug#14779 <14779@debbugs.gnu.org> Date: Tue, 24 Jun 2025 20:51:46 +0000 retitle 14779 24.3; Failure to resolve IPv6 addresses in make-network-proce= ss reassign 14779 emacs submitter 14779 toke@toke.dk (Toke H=C3=B8iland-J=C3=B8rgensen) severity 14779 normal tag 14779 moreinfo thanks From debbugs-submit-bounces@debbugs.gnu.org Wed Jul 03 11:42:40 2013 Received: (at submit) by debbugs.gnu.org; 3 Jul 2013 15:42:40 +0000 Received: from localhost ([127.0.0.1]:55006 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1UuPCY-0001Qa-Ui for submit@debbugs.gnu.org; Wed, 03 Jul 2013 11:42:40 -0400 Received: from eggs.gnu.org ([208.118.235.92]:45794) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1UuNU6-0005GY-5h for submit@debbugs.gnu.org; Wed, 03 Jul 2013 09:52:39 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UuNTw-0004Pg-1O for submit@debbugs.gnu.org; Wed, 03 Jul 2013 09:52:32 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=0.8 required=5.0 tests=BAYES_50 autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:38108) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UuNTv-0004PV-TJ for submit@debbugs.gnu.org; Wed, 03 Jul 2013 09:52:27 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:47466) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UuNTp-0005sB-Us for bug-gnu-emacs@gnu.org; Wed, 03 Jul 2013 09:52:27 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UuNBx-0005Q9-Ij for bug-gnu-emacs@gnu.org; Wed, 03 Jul 2013 09:34:00 -0400 Received: from mail.tohojo.dk ([188.40.53.186]:51097) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UuNBx-0005Ph-7c for bug-gnu-emacs@gnu.org; Wed, 03 Jul 2013 09:33:53 -0400 Received: from alrua-desktop.borgediget.toke.dk (unknown [10.42.3.5]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.tohojo.dk (Postfix) with ESMTPSA id D57851EC1EF0 for ; Wed, 3 Jul 2013 15:33:50 +0200 (CEST) Received: by alrua-desktop.borgediget.toke.dk (Postfix, from userid 1000) id 27EDA103ED; Wed, 3 Jul 2013 15:33:50 +0200 (CEST) From: toke@toke.dk (Toke =?utf-8?Q?H=C3=B8iland-J=C3=B8rgensen?=) To: bug-gnu-emacs@gnu.org Subject: 24.3; Failure to resolve IPv6 addresses in make-network-process Date: Wed, 03 Jul 2013 15:33:50 +0200 Message-ID: <87d2qzzs1t.fsf@toke.dk> MIME-Version: 1.0 Content-Type: text/plain X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2001:4830:134:3::11 X-Spam-Score: -4.0 (----) X-Debbugs-Envelope-To: submit X-Mailman-Approved-At: Wed, 03 Jul 2013 11:42:36 -0400 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -4.0 (----) I'm using ERC to connect to IRC, and was wondering why the connection used IPv4 rather than IPv6 when the server has both addresses configured. Messing with the DNS resolver so the address only resolves to IPv6 made Emacs unable to connect at all. Investigating this further, it seems that by default make-network-process does not resolve IPv6 addresses at all unless specifically asked to do so. More precisely, patch open-network-stream to pass :family 0 (line 143 of network-stream.el) makes resolution work as expected (i.e. first IPv6, then v4 if no v6 address exists), but the default of leaving out the :family parameter (or setting it to nil) makes resolution IPv4-only, resulting in a 'Name or service not known' error when trying to connect. Perusing the source code of process.c, it seems to me that it *should* do the right thing, when :family is nil, and I can't figure out why it's not. I have installed Emacs from the binary packages provided by my distribution (Arch linux). Regards, -Toke In GNU Emacs 24.3.1 (x86_64-unknown-linux-gnu, GTK+ Version 3.8.1) of 2013-04-29 on eric Windowing system distributor `The X.Org Foundation', version 11.0.11402000 Configured using: `configure '--prefix=/usr' '--sysconfdir=/etc' '--libexecdir=/usr/lib' '--localstatedir=/var' '--with-x-toolkit=gtk3' '--with-xft' 'CFLAGS=-march=x86-64 -mtune=generic -O2 -pipe -fstack-protector --param=ssp-buffer-size=4' 'LDFLAGS=-Wl,-O1,--sort-common,--as-needed,-z,relro' 'CPPFLAGS=-D_FORTIFY_SOURCE=2'' Important settings: value of $LC_MESSAGES: en_GB.UTF-8 value of $LANG: da_DK.UTF-8 locale-coding-system: utf-8-unix default enable-multibyte-characters: t Major mode: ERC Features: (shadow bbdb-message mail-extr emacsbug message idna rfc822 mml mml-sec mm-decode mm-bodies mm-encode gmm-utils mailheader sendmail mail-utils misearch multi-isearch gnutls network-stream starttls erc-menu erc-join erc-ring erc-pcomplete erc-track erc-match erc-button erc-fill erc-stamp erc-netsplit autoinsert eieio-opt helm-misc helm-files image-dired ffap helm-tags helm-bookmark helm-adaptative helm-info helm-net browse-url helm-plugin bookmark helm-locate helm-help helm-match-plugin helm-external helm-buffers helm-grep helm-regexp grep helm-elscreen helm-utils helm find-file-in-repository-autoloads flymake-lua-autoloads lua-mode-autoloads sauron-autoloads yaml-mode-autoloads package xcscope helm-config sunrise-x-loop sunrise-commander recentf tree-widget wid-edit sort hl-line find-dired esh-var esh-io esh-cmd esh-opt esh-ext esh-proc esh-arg eldoc esh-groups eshell esh-util esh-module esh-mode enriched dired-x dired-aux desktop preview-latex tex-site auto-loads undo-tree autopair browse-kill-ring iedit gnus-article-treat-patch gnus-dired dired magit-bisect magit-key-mode magit epa epg epg-config diff-mode uniquify auto-complete-config auto-complete popup pydoc-info info-look info python-mode rx cc-cmds compile ropemacs pymacs cc-styles cc-align cc-engine cc-vars cc-defs bbdb-mua bbdb-vcard bbdb-com crm mailabbrev vcard bbdb timezone bbdb-loaddefs znc erc-services erc-networks erc-spelling flyspell ispell erc-goodies erc erc-backend erc-compat thingatpt pp notify dbus w3m-load multi-term term disp-table ehelp electric post ox-beamer org-caldav icalendar diary-lib diary-loaddefs org-id ox-latex ox-icalendar ox-html ox-ascii ox-publish ox org-element url-http tls url url-proxy url-privacy url-expand url-methods url-history mailcap url-auth mail-parse rfc2231 rfc2047 rfc2045 ietf-drums url-cookie url-domsuf url-gw url-dav url-handlers url-util url-parse url-vars xml org-protocol org org-macro org-footnote org-pcomplete org-list org-faces org-entities noutline outline org-version ob-emacs-lisp ob ob-tangle org-src ob-ref ob-lob ob-table ob-keys ob-exp ob-comint ob-core ob-eval org-compat org-macs org-loaddefs find-func cal-menu calendar cal-loaddefs solarized-dark-theme solarized-definitions ido autorevert alist pym static apel-ver product jka-compr protbuf tramp tramp-compat auth-source eieio warnings byte-opt bytecomp byte-compile cconv inversion gnus-util mm-util mail-prsvr password-cache tramp-loaddefs shell pcomplete comint ansi-color format-spec nxhtml-autostart nxhtml-autoload majmodpri vc-git nxhtml-menu web-autoload nxhtml-base wc yasnippet help-mode skeleton paren cus-start cus-load log-edit ring pcvs-util add-log server zencoding-mode ebib derived advice advice-preload help-fns cl-macs gv bibtex easymenu cl cl-lib edmacro kmacro gnus-load easy-mmode time-date tooltip ediff-hook vc-hooks lisp-float-type mwheel x-win x-dnd tool-bar dnd fontset image regexp-opt fringe tabulated-list newcomment lisp-mode register page menu-bar rfn-eshadow timer select scroll-bar mouse jit-lock font-lock syntax facemenu font-core frame cham georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean japanese hebrew greek romanian slovak czech european ethiopic indian cyrillic chinese case-table epa-hook jka-cmpr-hook help simple abbrev minibuffer loaddefs button faces cus-face macroexp files text-properties overlay sha1 md5 base64 format env code-pages mule custom widget hashtable-print-readable backquote make-network-process dbusbind dynamic-setting system-font-setting font-render-setting move-toolbar gtk x-toolkit x multi-tty emacs) From debbugs-submit-bounces@debbugs.gnu.org Wed Jul 03 12:41:51 2013 Received: (at 14779) by debbugs.gnu.org; 3 Jul 2013 16:41:51 +0000 Received: from localhost ([127.0.0.1]:55113 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1UuQ7q-0003jy-R3 for submit@debbugs.gnu.org; Wed, 03 Jul 2013 12:41:51 -0400 Received: from mail-out.m-online.net ([212.18.0.9]:60663) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1UuQ7m-0003jh-AE for 14779@debbugs.gnu.org; Wed, 03 Jul 2013 12:41:47 -0400 Received: from frontend1.mail.m-online.net (unknown [192.168.8.180]) by mail-out.m-online.net (Postfix) with ESMTP id 3blp4S6VMCz4KK3w; Wed, 3 Jul 2013 18:41:44 +0200 (CEST) Received: from localhost (dynscan1.mnet-online.de [192.168.6.68]) by mail.m-online.net (Postfix) with ESMTP id 3blp4S5ftczbbgL; Wed, 3 Jul 2013 18:41:44 +0200 (CEST) X-Virus-Scanned: amavisd-new at mnet-online.de Received: from mail.mnet-online.de ([192.168.8.180]) by localhost (dynscan1.mail.m-online.net [192.168.6.68]) (amavisd-new, port 10024) with ESMTP id voB2BW7dE_SK; Wed, 3 Jul 2013 18:41:43 +0200 (CEST) X-Auth-Info: KfsZVu2L4TwiM6re35oeDmhMUFhsVL8xq7uaF2lCMN8= Received: from igel.home (ppp-88-217-96-142.dynamic.mnet-online.de [88.217.96.142]) by mail.mnet-online.de (Postfix) with ESMTPA; Wed, 3 Jul 2013 18:41:43 +0200 (CEST) Received: by igel.home (Postfix, from userid 1000) id 3716EE5147; Wed, 3 Jul 2013 18:41:43 +0200 (CEST) From: Andreas Schwab To: toke@toke.dk (Toke =?utf-8?Q?H=C3=B8iland-J=C3=B8rgensen?=) Subject: Re: bug#14779: 24.3; Failure to resolve IPv6 addresses in make-network-process References: <87d2qzzs1t.fsf@toke.dk> X-Yow: I want to read my new poem about pork brains and outer space... Date: Wed, 03 Jul 2013 18:41:42 +0200 In-Reply-To: <87d2qzzs1t.fsf@toke.dk> ("Toke =?utf-8?Q?H=C3=B8iland-J?= =?utf-8?Q?=C3=B8rgensen=22's?= message of "Wed, 03 Jul 2013 15:33:50 +0200") Message-ID: <87k3l7r3y1.fsf@igel.home> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 14779 Cc: 14779@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 0.0 (/) I cannot reproduce that. What does getent ahosts show? Andreas. -- Andreas Schwab, schwab@linux-m68k.org GPG Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5 "And now for something completely different." From debbugs-submit-bounces@debbugs.gnu.org Wed Jul 03 12:51:52 2013 Received: (at 14779) by debbugs.gnu.org; 3 Jul 2013 16:51:52 +0000 Received: from localhost ([127.0.0.1]:55118 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1UuQHX-0004Au-Ql for submit@debbugs.gnu.org; Wed, 03 Jul 2013 12:51:52 -0400 Received: from mail.tohojo.dk ([188.40.53.186]:39903) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1UuQHU-0004AH-7O for 14779@debbugs.gnu.org; Wed, 03 Jul 2013 12:51:49 -0400 Received: from alrua-desktop.borgediget.toke.dk (unknown [10.42.3.5]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.tohojo.dk (Postfix) with ESMTPSA id D6F661EC1EF0; Wed, 3 Jul 2013 18:51:41 +0200 (CEST) Received: by alrua-desktop.borgediget.toke.dk (Postfix, from userid 1000) id 0DA4510406; Wed, 3 Jul 2013 18:51:41 +0200 (CEST) From: =?utf-8?Q?Toke_H=C3=B8iland-J=C3=B8rgensen?= To: Andreas Schwab Subject: Re: bug#14779: 24.3; Failure to resolve IPv6 addresses in make-network-process References: <87d2qzzs1t.fsf@toke.dk> <87k3l7r3y1.fsf@igel.home> Date: Wed, 03 Jul 2013 18:51:37 +0200 In-Reply-To: <87k3l7r3y1.fsf@igel.home> (Andreas Schwab's message of "Wed, 03 Jul 2013 18:41:42 +0200") Message-ID: <87mwq34mee.fsf@toke.dk> User-Agent: Gnus/5.130008 (Ma Gnus v0.8) Emacs/24.3 (gnu/linux) MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha1; protocol="application/pgp-signature" X-Spam-Score: -0.0 (/) X-Debbugs-Envelope-To: 14779 Cc: 14779@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.0 (/) --=-=-= Content-Type: text/plain Andreas Schwab writes: > I cannot reproduce that. What does getent ahosts show? $ getent ahosts 127.0.0.1 localhost.localdomain localhost 127.0.0.1 localhost.localdomain localhost $ getent ahostsv6 127.0.0.1 localhost.localdomain localhost 127.0.0.1 localhost.localdomain localhost Other applications do not seem to have problems resolving dual-address hosts. And as I mentioned, passing :family 0 to make-network-process makes emacs correctly resolve the addresses as well... -Toke --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.20 (GNU/Linux) iQEcBAEBAgAGBQJR1FaZAAoJEENeEGz1+utPk6MH/27pWXTdgOHq2vCoS10PkdUg AXEwCP6Al8LvdjMOHQ9ei8vu55f1YeNcaN1InneHOVmTnXHwBT81PovNMAG7W96J j3eRCq/vDzEb6375+y6oQVWoTc96c4c9yi63KTnHwna9GjbzcCWj3ymOEwrjRQJ0 j4GO/jHC3A6qWkLxeqxst8RaPPY8QR3RTjKM9R/TRD0OuawrXeOG2hcY1LKdvlnr SMcBGigyPf4uTSfrZH8thMe6iXRY75JN8qC1UvPCvEhTzfOb2M8S62I/SoNOHRpn ObO3oyzR3ncBU34V5vxoOmiCpHfekZ/0siUr1w+ggpSjbBUKdZS0ggfVgvDU+Zw= =HUpU -----END PGP SIGNATURE----- --=-=-=-- From debbugs-submit-bounces@debbugs.gnu.org Wed Jul 03 16:04:16 2013 Received: (at 14779) by debbugs.gnu.org; 3 Jul 2013 20:04:16 +0000 Received: from localhost ([127.0.0.1]:55373 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1UuTHj-0004qm-Sl for submit@debbugs.gnu.org; Wed, 03 Jul 2013 16:04:16 -0400 Received: from mail-out.m-online.net ([212.18.0.9]:50275) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1UuTHh-0004qa-7W for 14779@debbugs.gnu.org; Wed, 03 Jul 2013 16:04:14 -0400 Received: from frontend1.mail.m-online.net (unknown [192.168.8.180]) by mail-out.m-online.net (Postfix) with ESMTP id 3bltZ416ySz4KK43; Wed, 3 Jul 2013 22:04:12 +0200 (CEST) Received: from localhost (dynscan1.mnet-online.de [192.168.6.68]) by mail.m-online.net (Postfix) with ESMTP id 3bltZ40rqszbbjV; Wed, 3 Jul 2013 22:04:12 +0200 (CEST) X-Virus-Scanned: amavisd-new at mnet-online.de Received: from mail.mnet-online.de ([192.168.8.180]) by localhost (dynscan1.mail.m-online.net [192.168.6.68]) (amavisd-new, port 10024) with ESMTP id aLng57CUY2cd; Wed, 3 Jul 2013 22:04:11 +0200 (CEST) X-Auth-Info: tuW3Td7aV/mgYK+fxN2ZzscBZpIJgtOdYIeC0dapJqU= Received: from igel.home (ppp-88-217-96-142.dynamic.mnet-online.de [88.217.96.142]) by mail.mnet-online.de (Postfix) with ESMTPA; Wed, 3 Jul 2013 22:04:11 +0200 (CEST) Received: by igel.home (Postfix, from userid 1000) id DA499E5195; Wed, 3 Jul 2013 22:04:10 +0200 (CEST) From: Andreas Schwab To: Toke =?utf-8?Q?H=C3=B8iland-J=C3=B8rgensen?= Subject: Re: bug#14779: 24.3; Failure to resolve IPv6 addresses in make-network-process References: <87d2qzzs1t.fsf@toke.dk> <87k3l7r3y1.fsf@igel.home> <87mwq34mee.fsf@toke.dk> X-Yow: Is this "BIKINI BEACH"? Date: Wed, 03 Jul 2013 22:04:10 +0200 In-Reply-To: <87mwq34mee.fsf@toke.dk> ("Toke =?utf-8?Q?H=C3=B8iland-J?= =?utf-8?Q?=C3=B8rgensen=22's?= message of "Wed, 03 Jul 2013 18:51:37 +0200") Message-ID: <871u7fqukl.fsf@igel.home> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 14779 Cc: 14779@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 0.0 (/) Please pass it the address to resolve. Andreas. -- Andreas Schwab, schwab@linux-m68k.org GPG Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5 "And now for something completely different." From debbugs-submit-bounces@debbugs.gnu.org Wed Jul 03 16:22:48 2013 Received: (at 14779) by debbugs.gnu.org; 3 Jul 2013 20:22:48 +0000 Received: from localhost ([127.0.0.1]:55393 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1UuTZg-0005dk-5r for submit@debbugs.gnu.org; Wed, 03 Jul 2013 16:22:48 -0400 Received: from mail.tohojo.dk ([188.40.53.186]:43247) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1UuTZd-0005dK-Ov for 14779@debbugs.gnu.org; Wed, 03 Jul 2013 16:22:46 -0400 Received: from alrua-desktop.borgediget.toke.dk (unknown [10.42.3.5]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.tohojo.dk (Postfix) with ESMTPSA id 81A0E1EC1EF0; Wed, 3 Jul 2013 22:22:39 +0200 (CEST) Received: by alrua-desktop.borgediget.toke.dk (Postfix, from userid 1000) id 7C8F710453; Wed, 3 Jul 2013 22:22:38 +0200 (CEST) From: =?utf-8?Q?Toke_H=C3=B8iland-J=C3=B8rgensen?= To: Andreas Schwab Subject: Re: bug#14779: 24.3; Failure to resolve IPv6 addresses in make-network-process References: <87d2qzzs1t.fsf@toke.dk> <87k3l7r3y1.fsf@igel.home> <87mwq34mee.fsf@toke.dk> <871u7fqukl.fsf@igel.home> Date: Wed, 03 Jul 2013 22:22:36 +0200 In-Reply-To: <871u7fqukl.fsf@igel.home> (Andreas Schwab's message of "Wed, 03 Jul 2013 22:04:10 +0200") Message-ID: <87d2qz4cmr.fsf@toke.dk> User-Agent: Gnus/5.130008 (Ma Gnus v0.8) Emacs/24.3 (gnu/linux) MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha1; protocol="application/pgp-signature" X-Spam-Score: -0.0 (/) X-Debbugs-Envelope-To: 14779 Cc: 14779@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.0 (/) --=-=-= Content-Type: text/plain Content-Transfer-Encoding: quoted-printable Andreas Schwab writes: > Please pass it the address to resolve. Oh, right. Sorry. $ getent ahosts google.com 2a00:1450:4013:c00::71 STREAM google.com 2a00:1450:4013:c00::71 DGRAM=20=20 2a00:1450:4013:c00::71 RAW=20=20=20=20 195.249.80.32 STREAM=20 195.249.80.32 DGRAM=20=20 195.249.80.32 RAW=20=20=20=20 195.249.80.46 STREAM=20 195.249.80.46 DGRAM=20=20 195.249.80.46 RAW=20=20=20=20 195.249.80.25 STREAM=20 195.249.80.25 DGRAM=20=20 195.249.80.25 RAW=20=20=20=20 195.249.80.53 STREAM=20 195.249.80.53 DGRAM=20=20 195.249.80.53 RAW=20=20=20=20 195.249.80.52 STREAM=20 195.249.80.52 DGRAM=20=20 195.249.80.52 RAW=20=20=20=20 195.249.80.39 STREAM=20 195.249.80.39 DGRAM=20=20 195.249.80.39 RAW=20=20=20=20 195.249.80.59 STREAM=20 195.249.80.59 DGRAM=20=20 195.249.80.59 RAW=20=20=20=20 195.249.80.38 STREAM=20 195.249.80.38 DGRAM=20=20 195.249.80.38 RAW=20=20=20=20 195.249.80.24 STREAM=20 195.249.80.24 DGRAM=20=20 195.249.80.24 RAW=20=20=20=20 195.249.80.18 STREAM=20 195.249.80.18 DGRAM=20=20 195.249.80.18 RAW=20=20=20=20 195.249.80.31 STREAM=20 195.249.80.31 DGRAM=20=20 195.249.80.31 RAW=20=20=20=20 195.249.80.45 STREAM=20 195.249.80.45 DGRAM=20=20 195.249.80.45 RAW =2DToke --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.20 (GNU/Linux) iQEcBAEBAgAGBQJR1IgMAAoJEENeEGz1+utPIgcH/iWE9NVV/88rFRsLsPGVCoI0 fZLoH16mxu/Q60poayIBHEJwFuHBS5LJQsEj+cPG0uote0EosjyMI6CQkZ2c3o5+ KPh3fMa537tvgvR/yUPNo8WtvIZCBGja6+aj1tgeRMW3fOkbF+ZeSW9F4SiBoJXE jKUT+gGYZcJZLW47IoSNgQHwsrYd+dAdzo7iPIpnSaWfe3TyRFh/8eBxUIojLIkL h8x1bvTiV6Cemu/yhJBJ9edA0dQ8I7vpAnwcLmJZjLelH3hpwU9Vunz9slIIOF6V A/DVA5hxx5+VS/S8bRa7Z3U29gokQ0yRnbzhsKLZjigMC90Goc8pPlDhzGs50bo= =7cFA -----END PGP SIGNATURE----- --=-=-=-- From debbugs-submit-bounces@debbugs.gnu.org Wed Oct 23 07:40:00 2019 Received: (at 14779) by debbugs.gnu.org; 23 Oct 2019 11:40:00 +0000 Received: from localhost ([127.0.0.1]:32835 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iNEzf-0000qf-RZ for submit@debbugs.gnu.org; Wed, 23 Oct 2019 07:40:00 -0400 Received: from quimby.gnus.org ([80.91.231.51]:36610) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iNEze-0000qV-Bc for 14779@debbugs.gnu.org; Wed, 23 Oct 2019 07:39:58 -0400 Received: from cm-84.212.202.86.getinternet.no ([84.212.202.86] helo=marnie) by quimby.gnus.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1iNEza-00037m-4k; Wed, 23 Oct 2019 13:39:56 +0200 From: Lars Ingebrigtsen To: toke@toke.dk (Toke =?utf-8?Q?H=C3=B8iland-J=C3=B8rgensen?=) Subject: Re: bug#14779: 24.3; Failure to resolve IPv6 addresses in make-network-process References: <87d2qzzs1t.fsf@toke.dk> Date: Wed, 23 Oct 2019 13:39:53 +0200 In-Reply-To: <87d2qzzs1t.fsf@toke.dk> ("Toke \=\?utf-8\?Q\?H\=C3\=B8iland-J\?\= \=\?utf-8\?Q\?\=C3\=B8rgensen\=22's\?\= message of "Wed, 03 Jul 2013 15:33:50 +0200") Message-ID: <875zkfhera.fsf@gnus.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: toke@toke.dk (Toke Høiland-Jørgensen) writes: > I'm using ERC to connect to IRC, and was wondering why the connection > used IPv4 rather than IPv6 when the server has both addresses > configured. Messing with the DNS resolver so the address only [...] Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 14779 Cc: 14779@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) toke@toke.dk (Toke H=C3=B8iland-J=C3=B8rgensen) writes: > I'm using ERC to connect to IRC, and was wondering why the connection > used IPv4 rather than IPv6 when the server has both addresses > configured. Messing with the DNS resolver so the address only resolves > to IPv6 made Emacs unable to connect at all. > > Investigating this further, it seems that by default > make-network-process does not resolve IPv6 addresses at all unless > specifically asked to do so. More precisely, patch open-network-stream > to pass :family 0 (line 143 of network-stream.el) makes resolution work > as expected (i.e. first IPv6, then v4 if no v6 address exists), but the > default of leaving out the :family parameter (or setting it to nil) > makes resolution IPv4-only, resulting in a 'Name or service not known' > error when trying to connect. The code has changed substantially in the six years since this was reported. Are you still seeing these problems? --=20 (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no From debbugs-submit-bounces@debbugs.gnu.org Wed Oct 23 07:40:04 2019 Received: (at control) by debbugs.gnu.org; 23 Oct 2019 11:40:04 +0000 Received: from localhost ([127.0.0.1]:32839 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iNEzk-0000rP-72 for submit@debbugs.gnu.org; Wed, 23 Oct 2019 07:40:04 -0400 Received: from quimby.gnus.org ([80.91.231.51]:36628) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iNEzi-0000qz-Ew for control@debbugs.gnu.org; Wed, 23 Oct 2019 07:40:02 -0400 Received: from cm-84.212.202.86.getinternet.no ([84.212.202.86] helo=marnie) by quimby.gnus.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1iNEzf-00037t-LM for control@debbugs.gnu.org; Wed, 23 Oct 2019 13:40:01 +0200 Date: Wed, 23 Oct 2019 13:39:59 +0200 Message-Id: <874kzzher4.fsf@gnus.org> To: control@debbugs.gnu.org From: Lars Ingebrigtsen Subject: control message for bug #14779 X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: tags 14779 + moreinfo quit Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) tags 14779 + moreinfo quit From debbugs-submit-bounces@debbugs.gnu.org Wed Oct 23 08:24:49 2019 Received: (at 14779) by debbugs.gnu.org; 23 Oct 2019 12:24:49 +0000 Received: from localhost ([127.0.0.1]:32864 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iNFh3-0003vZ-BY for submit@debbugs.gnu.org; Wed, 23 Oct 2019 08:24:49 -0400 Received: from mail.toke.dk ([52.28.52.200]:60281) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iNFh1-0003vM-Dr for 14779@debbugs.gnu.org; Wed, 23 Oct 2019 08:24:48 -0400 From: Toke =?utf-8?Q?H=C3=B8iland-J=C3=B8rgensen?= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=toke.dk; s=20161023; t=1571833480; bh=uaPkLOiRRye3hyyA/6pOPf7yyX4nAhuU1D2IYJgsQXE=; h=From:To:Cc:Subject:In-Reply-To:References:Date:From; b=Mn042hXJ8MacsppRaV8YviBIf4ftNYm9PrCTtn0VnvbKFuv9YZxxqNK6KjPDWW3+6 aLkrjfuaUdIJIjTvkd1HIo8KYHJTUa2NBT0AufDRRnfEfz3FTXX/uXrrs48pKbHGuT g9Z76Zx9Cd8nCNQZqJaoHN1cu3ReDi8JywXNcMKf8TwHm66DWcmdEGMkYHsxGEfsHd bpJHXlY/LElvXeD3Y5rhg0SD3HYpkN62tVWxw53kUcVaDTISuMJsXc3rYF+3igIxjG SV47M7wmQuIWfAMHbbT9PmHja22K64Ovsw9C3mdb2i1HCt3+S9F1549P+y8+/0+2en M7zIHjn5rOmQw== To: Lars Ingebrigtsen Subject: Re: bug#14779: 24.3; Failure to resolve IPv6 addresses in make-network-process In-Reply-To: <875zkfhera.fsf@gnus.org> References: <87d2qzzs1t.fsf@toke.dk> <875zkfhera.fsf@gnus.org> Date: Wed, 23 Oct 2019 14:24:40 +0200 X-Clacks-Overhead: GNU Terry Pratchett Message-ID: <87ftjjmyyf.fsf@toke.dk> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 14779 Cc: 14779@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) Lars Ingebrigtsen writes: > toke@toke.dk (Toke H=C3=B8iland-J=C3=B8rgensen) writes: > >> I'm using ERC to connect to IRC, and was wondering why the connection >> used IPv4 rather than IPv6 when the server has both addresses >> configured. Messing with the DNS resolver so the address only resolves >> to IPv6 made Emacs unable to connect at all. >> >> Investigating this further, it seems that by default >> make-network-process does not resolve IPv6 addresses at all unless >> specifically asked to do so. More precisely, patch open-network-stream >> to pass :family 0 (line 143 of network-stream.el) makes resolution work >> as expected (i.e. first IPv6, then v4 if no v6 address exists), but the >> default of leaving out the :family parameter (or setting it to nil) >> makes resolution IPv4-only, resulting in a 'Name or service not known' >> error when trying to connect. > > The code has changed substantially in the six years since this was > reported. Heh, indeed. > Are you still seeing these problems? No idea. I stopped using erc in the meantime; not that long ago, though, and don't think I had this problem when I most recently used it (the host I was connecting to still had only v6 addresses). So as far as I'm concerned, feel free to go ahead and close this :) -Toke From debbugs-submit-bounces@debbugs.gnu.org Thu Oct 24 07:45:37 2019 Received: (at 14779) by debbugs.gnu.org; 24 Oct 2019 11:45:37 +0000 Received: from localhost ([127.0.0.1]:35416 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iNbYf-00074w-5M for submit@debbugs.gnu.org; Thu, 24 Oct 2019 07:45:37 -0400 Received: from quimby.gnus.org ([80.91.231.51]:59848) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iNbYd-00074p-TW for 14779@debbugs.gnu.org; Thu, 24 Oct 2019 07:45:36 -0400 Received: from cm-84.212.202.86.getinternet.no ([84.212.202.86] helo=marnie) by quimby.gnus.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1iNbYa-0003yl-84; Thu, 24 Oct 2019 13:45:34 +0200 From: Lars Ingebrigtsen To: Toke =?utf-8?Q?H=C3=B8iland-J=C3=B8rgensen?= Subject: Re: bug#14779: 24.3; Failure to resolve IPv6 addresses in make-network-process References: <87d2qzzs1t.fsf@toke.dk> <875zkfhera.fsf@gnus.org> <87ftjjmyyf.fsf@toke.dk> Date: Thu, 24 Oct 2019 13:45:31 +0200 In-Reply-To: <87ftjjmyyf.fsf@toke.dk> ("Toke \=\?utf-8\?Q\?H\=C3\=B8iland-J\?\= \=\?utf-8\?Q\?\=C3\=B8rgensen\=22's\?\= message of "Wed, 23 Oct 2019 14:24:40 +0200") Message-ID: <87pnimfjtw.fsf@gnus.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: Toke Høiland-Jørgensen writes: > No idea. I stopped using erc in the meantime; not that long ago, though, > and don't think I had this problem when I most recently used it (the > host I was connecting to still had only v6 addresses [...] Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 14779 Cc: 14779@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) Toke H=C3=B8iland-J=C3=B8rgensen writes: > No idea. I stopped using erc in the meantime; not that long ago, though, > and don't think I had this problem when I most recently used it (the > host I was connecting to still had only v6 addresses). > > So as far as I'm concerned, feel free to go ahead and close this :) Great; closing. --=20 (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no From debbugs-submit-bounces@debbugs.gnu.org Thu Oct 24 07:45:46 2019 Received: (at control) by debbugs.gnu.org; 24 Oct 2019 11:45:46 +0000 Received: from localhost ([127.0.0.1]:35419 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iNbYo-00075P-DX for submit@debbugs.gnu.org; Thu, 24 Oct 2019 07:45:46 -0400 Received: from quimby.gnus.org ([80.91.231.51]:59864) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iNbYn-00075H-9w for control@debbugs.gnu.org; Thu, 24 Oct 2019 07:45:45 -0400 Received: from cm-84.212.202.86.getinternet.no ([84.212.202.86] helo=marnie) by quimby.gnus.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1iNbYk-0003yu-FY for control@debbugs.gnu.org; Thu, 24 Oct 2019 13:45:44 +0200 Date: Thu, 24 Oct 2019 13:45:42 +0200 Message-Id: <87o8y6fjtl.fsf@gnus.org> To: control@debbugs.gnu.org From: Lars Ingebrigtsen Subject: control message for bug #14779 X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: close 14779 quit Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) close 14779 quit From unknown Tue Jun 24 13:51:46 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Thu, 21 Nov 2019 12:24:07 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator