From: Lars Ingebrigtsen <larsi@gnus.org>
To: Dmitry Alexandrov <dag@gnui.org>
Cc: 41234@debbugs.gnu.org
Subject: bug#41234: 27.0.91; Synchronous network requests are failing with “Name or service not known”
Date: Mon, 20 Jul 2020 12:53:12 +0200 [thread overview]
Message-ID: <87y2neh2zr.fsf@gnus.org> (raw)
In-Reply-To: <1rnogg6b.dag@gnui.org> (Dmitry Alexandrov's message of "Wed, 13 May 2020 15:42:04 +0300")
Dmitry Alexandrov <dag@gnui.org> writes:
> (make-network-process :name " *net-test*"
> :buffer (get-buffer-create " *net-test*")
> :host "gnu.org" :service 80
> :nowait nil)
> ;; Debugger entered--Lisp error: (error "gnu.org/80 Name or service not known")
>
> More specifically, a call to getaddrinfo() in ‘network_lookup_address_info_1’ returns EAI_NONAME.
>
> Could it be a problem in GNU Emacs, or have I broken my system somehow?
Dmitry Alexandrov <dag@gnui.org> writes:
> FWIW, strace suggests, that the problematic Emacs process is trying to
> connect to an outdated nameserver (from a LAN this machine was
> connected once):
[...]
> That is, that /etc/resolv.conf had not been reread (there is nothing
> about it in the skipped output above), while the instance that is
> working fine do check whether /etc/resolv.conf is updated:
Hm... since the async lookups work, I guess this means that
getaddrinfo_a works, but getaddrinfo doesn't? Which is very odd -- both
functions are supposed to update the name server etc in the same way, I
think?
So I'm not sure how this can be an Emacs bug -- as far as I know,
there's no way for libc clients to say "update all the DNS stuff now";
it's supposed to happen automatically when you call getaddrinfo. (If
I'm wrong, somebody please correct me.)
--
(domestic pets only, the antidote for overdose, milk.)
bloggy blog: http://lars.ingebrigtsen.no
next prev parent reply other threads:[~2020-07-20 10:53 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-05-13 12:42 bug#41234: 27.0.91; Synchronous network requests are failing with “Name or service not known” Dmitry Alexandrov
2020-05-15 13:05 ` Dmitry Alexandrov
2020-07-02 20:50 ` Dmitry Alexandrov
2020-07-20 10:53 ` Lars Ingebrigtsen [this message]
2021-06-14 14:02 ` bug#40748: 28.0.50; Switching wifi networks hangs dns lookups Lars Ingebrigtsen
2021-12-23 22:09 ` Eric Abrahamsen
2021-12-24 9:11 ` bug#41234: " Lars Ingebrigtsen
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87y2neh2zr.fsf@gnus.org \
--to=larsi@gnus.org \
--cc=41234@debbugs.gnu.org \
--cc=dag@gnui.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.