public inbox for glibc-bugs@sourceware.org help / color / mirror / Atom feed
* [Bug libc/26977] New: getaddrinfo does not handle the hosts file correctly @ 2020-11-29 21:28 bugs at jth dot net 2020-11-29 21:29 ` [Bug libc/26977] " bugs at jth dot net ` (7 more replies) 0 siblings, 8 replies; 9+ messages in thread From: bugs at jth dot net @ 2020-11-29 21:28 UTC (permalink / raw) To: glibc-bugs https://sourceware.org/bugzilla/show_bug.cgi?id=26977 Bug ID: 26977 Summary: getaddrinfo does not handle the hosts file correctly Product: glibc Version: 2.32 Status: UNCONFIRMED Keywords: glibc_2.32 Severity: normal Priority: P2 Component: libc Assignee: unassigned at sourceware dot org Reporter: bugs at jth dot net CC: drepper.fsp at gmail dot com Target Milestone: 2.32 Host: Linux Fedora 33 On a dual stack IP4 + IP6 server the 2.32 release has introduced a problem of getaddrinfo omitting looking up the IP6 address in the DNS in case the IP4 address is found in the hosts file or vice versa. After upgrading 'ping -6 IP6.HOST' suddenly failed by "Address family for hostname not supported" and the monitoring software reported downtime. Similarly for the dig command. A test program for getaddrinfo verified the changed behaviour. Only after entering the IP6 address into or deleting the IP4 address from the hosts file the old behaviour was restored. -- You are receiving this mail because: You are on the CC list for the bug. ^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug libc/26977] getaddrinfo does not handle the hosts file correctly 2020-11-29 21:28 [Bug libc/26977] New: getaddrinfo does not handle the hosts file correctly bugs at jth dot net @ 2020-11-29 21:29 ` bugs at jth dot net 2020-11-29 21:51 ` bugs at jth dot net ` (6 subsequent siblings) 7 siblings, 0 replies; 9+ messages in thread From: bugs at jth dot net @ 2020-11-29 21:29 UTC (permalink / raw) To: glibc-bugs https://sourceware.org/bugzilla/show_bug.cgi?id=26977 Joergen Thomsen <bugs at jth dot net> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |bugs at jth dot net -- You are receiving this mail because: You are on the CC list for the bug. ^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug libc/26977] getaddrinfo does not handle the hosts file correctly 2020-11-29 21:28 [Bug libc/26977] New: getaddrinfo does not handle the hosts file correctly bugs at jth dot net 2020-11-29 21:29 ` [Bug libc/26977] " bugs at jth dot net @ 2020-11-29 21:51 ` bugs at jth dot net 2020-11-30 11:47 ` fweimer at redhat dot com ` (5 subsequent siblings) 7 siblings, 0 replies; 9+ messages in thread From: bugs at jth dot net @ 2020-11-29 21:51 UTC (permalink / raw) To: glibc-bugs https://sourceware.org/bugzilla/show_bug.cgi?id=26977 --- Comment #1 from Joergen Thomsen <bugs at jth dot net> --- This is probably not related to the AI_ADDRCONFIG flag as the test program used these parameters hints.ai_family = PF_UNSPEC; hints.ai_socktype = SOCK_STREAM; hints.ai_flags = AI_CANONNAME; -- You are receiving this mail because: You are on the CC list for the bug. ^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug libc/26977] getaddrinfo does not handle the hosts file correctly 2020-11-29 21:28 [Bug libc/26977] New: getaddrinfo does not handle the hosts file correctly bugs at jth dot net 2020-11-29 21:29 ` [Bug libc/26977] " bugs at jth dot net 2020-11-29 21:51 ` bugs at jth dot net @ 2020-11-30 11:47 ` fweimer at redhat dot com 2020-11-30 13:13 ` bugs at jth dot net ` (4 subsequent siblings) 7 siblings, 0 replies; 9+ messages in thread From: fweimer at redhat dot com @ 2020-11-30 11:47 UTC (permalink / raw) To: glibc-bugs https://sourceware.org/bugzilla/show_bug.cgi?id=26977 Florian Weimer <fweimer at redhat dot com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |fweimer at redhat dot com Ever confirmed|0 |1 Last reconfirmed| |2020-11-30 Status|UNCONFIRMED |WAITING --- Comment #2 from Florian Weimer <fweimer at redhat dot com> --- Do you use systemd-resolved? Thanks. -- You are receiving this mail because: You are on the CC list for the bug. ^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug libc/26977] getaddrinfo does not handle the hosts file correctly 2020-11-29 21:28 [Bug libc/26977] New: getaddrinfo does not handle the hosts file correctly bugs at jth dot net ` (2 preceding siblings ...) 2020-11-30 11:47 ` fweimer at redhat dot com @ 2020-11-30 13:13 ` bugs at jth dot net 2020-11-30 13:34 ` bugs at jth dot net ` (3 subsequent siblings) 7 siblings, 0 replies; 9+ messages in thread From: bugs at jth dot net @ 2020-11-30 13:13 UTC (permalink / raw) To: glibc-bugs https://sourceware.org/bugzilla/show_bug.cgi?id=26977 --- Comment #3 from Joergen Thomsen <bugs at jth dot net> --- (In reply to Florian Weimer from comment #2) > Do you use systemd-resolved? Thanks. Apparently as the systemd-resolved service is running, but after stopping the service no change in behaviour was observed. Only by changing /etc/nsswitch.conf between the two lines below I observed a change hosts: files dns incorrect behaviour hosts: dns correct -- You are receiving this mail because: You are on the CC list for the bug. ^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug libc/26977] getaddrinfo does not handle the hosts file correctly 2020-11-29 21:28 [Bug libc/26977] New: getaddrinfo does not handle the hosts file correctly bugs at jth dot net ` (3 preceding siblings ...) 2020-11-30 13:13 ` bugs at jth dot net @ 2020-11-30 13:34 ` bugs at jth dot net 2020-11-30 13:36 ` fweimer at redhat dot com ` (2 subsequent siblings) 7 siblings, 0 replies; 9+ messages in thread From: bugs at jth dot net @ 2020-11-30 13:34 UTC (permalink / raw) To: glibc-bugs https://sourceware.org/bugzilla/show_bug.cgi?id=26977 --- Comment #4 from Joergen Thomsen <bugs at jth dot net> --- My usage case is this: In some cases it is important to overrule the DNS IP address by a temporary address in the /etc/hosts file without changing the DNS. This should not need any other entries in the /etc/hosts file than the temporary ones. -- You are receiving this mail because: You are on the CC list for the bug. ^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug libc/26977] getaddrinfo does not handle the hosts file correctly 2020-11-29 21:28 [Bug libc/26977] New: getaddrinfo does not handle the hosts file correctly bugs at jth dot net ` (4 preceding siblings ...) 2020-11-30 13:34 ` bugs at jth dot net @ 2020-11-30 13:36 ` fweimer at redhat dot com 2020-11-30 13:37 ` [Bug network/26977] " fweimer at redhat dot com 2020-11-30 14:02 ` bugs at jth dot net 7 siblings, 0 replies; 9+ messages in thread From: fweimer at redhat dot com @ 2020-11-30 13:36 UTC (permalink / raw) To: glibc-bugs https://sourceware.org/bugzilla/show_bug.cgi?id=26977 --- Comment #5 from Florian Weimer <fweimer at redhat dot com> --- I would like to see your test program for getaddrinfo. Thanks. -- You are receiving this mail because: You are on the CC list for the bug. ^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug network/26977] getaddrinfo does not handle the hosts file correctly 2020-11-29 21:28 [Bug libc/26977] New: getaddrinfo does not handle the hosts file correctly bugs at jth dot net ` (5 preceding siblings ...) 2020-11-30 13:36 ` fweimer at redhat dot com @ 2020-11-30 13:37 ` fweimer at redhat dot com 2020-11-30 14:02 ` bugs at jth dot net 7 siblings, 0 replies; 9+ messages in thread From: fweimer at redhat dot com @ 2020-11-30 13:37 UTC (permalink / raw) To: glibc-bugs https://sourceware.org/bugzilla/show_bug.cgi?id=26977 Florian Weimer <fweimer at redhat dot com> changed: What |Removed |Added ---------------------------------------------------------------------------- Component|libc |network -- You are receiving this mail because: You are on the CC list for the bug. ^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug network/26977] getaddrinfo does not handle the hosts file correctly 2020-11-29 21:28 [Bug libc/26977] New: getaddrinfo does not handle the hosts file correctly bugs at jth dot net ` (6 preceding siblings ...) 2020-11-30 13:37 ` [Bug network/26977] " fweimer at redhat dot com @ 2020-11-30 14:02 ` bugs at jth dot net 7 siblings, 0 replies; 9+ messages in thread From: bugs at jth dot net @ 2020-11-30 14:02 UTC (permalink / raw) To: glibc-bugs https://sourceware.org/bugzilla/show_bug.cgi?id=26977 --- Comment #6 from Joergen Thomsen <bugs at jth dot net> --- Created attachment 13009 --> https://sourceware.org/bugzilla/attachment.cgi?id=13009&action=edit getaddrinfo test program -- You are receiving this mail because: You are on the CC list for the bug. ^ permalink raw reply [flat|nested] 9+ messages in thread
end of thread, other threads:[~2020-11-30 14:02 UTC | newest] Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed) -- links below jump to the message on this page -- 2020-11-29 21:28 [Bug libc/26977] New: getaddrinfo does not handle the hosts file correctly bugs at jth dot net 2020-11-29 21:29 ` [Bug libc/26977] " bugs at jth dot net 2020-11-29 21:51 ` bugs at jth dot net 2020-11-30 11:47 ` fweimer at redhat dot com 2020-11-30 13:13 ` bugs at jth dot net 2020-11-30 13:34 ` bugs at jth dot net 2020-11-30 13:36 ` fweimer at redhat dot com 2020-11-30 13:37 ` [Bug network/26977] " fweimer at redhat dot com 2020-11-30 14:02 ` bugs at jth dot net
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).