Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.os.linux.misc > #67591
| From | "Carlos E. R." <robin_listas@es.invalid> |
|---|---|
| Newsgroups | comp.os.linux.misc |
| Subject | Re: Linux advocacy |
| Date | 2025-05-20 11:46 +0200 |
| Message-ID | <m931c4F8pgcU1@mid.individual.net> (permalink) |
| References | (4 earlier) <w6GdneCj_9dqyrT1nZ2dnZfqnPGdnZ2d@giganews.com> <100c46e$3c1el$1@news1.tnib.de> <m91evtFfleU3@mid.individual.net> <100hcra$3nsq7$1@news1.tnib.de> <100hetv$24um2$2@dont-email.me> |
On 2025-05-20 10:36, Nuno Silva wrote:
> On 2025-05-20, Marc Haber wrote:
>
> Maybe what's missing here for some of the affected people is configuring
> address lookup to prefer IPv4 if they're using nameservers that return
> AAAA records?
>
> (Just a wild guess, but fitting enough that it's probably a good idea to
> drop this here:)
>
> news://news.gmane.io/m3msju6x5x.fsf@lugabout.jhcloos.org
>
> Although I'm not sure, from the gai.conf online manual page, that just
> the mentioned line is sufficient, given it's said to disable the
> "default table". I didn't test this myself.
I knew and did the trick in the past, but I have forgotten, so I asked
chatgpt:
Method 1: Edit /etc/gai.conf to prefer IPv4
The /etc/gai.conf file is used by the GNU C Library (glibc) to influence
address selection when a hostname resolves to multiple addresses (e.g.,
both A and AAAA records).
Open the file in a text editor as root:
sudo nano /etc/gai.conf
Find the following line (it’s usually commented out):
#precedence ::ffff:0:0/96 100
Uncomment the line by removing the #:
precedence ::ffff:0:0/96 100
This tells the system to prefer IPv4-mapped addresses over IPv6.
Save and exit the editor.
This change takes effect immediately for new processes that use glibc’s
getaddrinfo() function.
Method 2: Disable IPv6 (not recommended unless necessary)
(skip)
Verify Preference
You can test the preference with getent:
getent ahosts example.com
The top address should be IPv4 if the change worked.
--
Cheers,
Carlos E.R.
Back to comp.os.linux.misc | Previous | Next — Previous in thread | Next in thread | Find similar
Anybody Using IPv6? Farley Flud <ff@linux.rocks> - 2025-05-15 18:42 +0000
Re: Anybody Using IPv6? vallor <vallor@cultnix.org> - 2025-05-17 18:01 +0000
Re: Anybody Using IPv6? % <pursent100@gmail.com> - 2025-05-17 11:05 -0700
Re: Anybody Using IPv6? % <pursent100@gmail.com> - 2025-05-17 11:17 -0700
Re: Anybody Using IPv6? Chris Ahlstrom <OFeem1987@teleworm.us> - 2025-05-18 07:16 -0400
Re: Anybody Using IPv6? Shadow <Sh@dow.br> - 2025-05-17 15:13 -0300
Linux advocacy (was: Re: Anybody Using IPv6?) vallor <vallor@cultnix.org> - 2025-05-18 00:11 +0000
Re: Linux advocacy (was: Re: Anybody Using IPv6?) c186282 <c186282@nnada.net> - 2025-05-17 23:45 -0400
Re: Linux advocacy (was: Re: Anybody Using IPv6?) Marc Haber <mh+usenetspam1118@zugschl.us> - 2025-05-18 10:02 +0200
Re: Linux advocacy (was: Re: Anybody Using IPv6?) rbowman <bowman@montana.com> - 2025-05-18 20:27 +0000
Re: Linux advocacy (was: Re: Anybody Using IPv6?) Marc Haber <mh+usenetspam1118@zugschl.us> - 2025-05-19 08:13 +0200
Re: Linux advocacy (was: Re: Anybody Using IPv6?) rbowman <bowman@montana.com> - 2025-05-19 07:24 +0000
Re: Linux advocacy (was: Re: Anybody Using IPv6?) vallor <vallor@cultnix.org> - 2025-05-19 19:26 +0000
Re: Linux advocacy (was: Re: Anybody Using IPv6?) Marc Haber <mh+usenetspam1118@zugschl.us> - 2025-05-20 10:00 +0200
Re: Linux advocacy Nuno Silva <nunojsilva@invalid.invalid> - 2025-05-20 09:36 +0100
Re: Linux advocacy "Carlos E. R." <robin_listas@es.invalid> - 2025-05-20 11:46 +0200
Re: Linux advocacy Marc Haber <mh+usenetspam1118@zugschl.us> - 2025-05-20 12:20 +0200
Re: Linux advocacy The Natural Philosopher <tnp@invalid.invalid> - 2025-05-20 10:38 +0100
Re: Linux advocacy Marc Haber <mh+usenetspam1118@zugschl.us> - 2025-05-20 12:21 +0200
Re: Linux advocacy The Natural Philosopher <tnp@invalid.invalid> - 2025-05-20 11:33 +0100
Re: Linux advocacy Marc Haber <mh+usenetspam1118@zugschl.us> - 2025-05-20 17:48 +0200
Re: Anybody Using IPv6? "Carlos E. R." <robin_listas@es.invalid> - 2025-05-20 13:04 +0200
Re: Anybody Using IPv6? Marc Haber <mh+usenetspam1118@zugschl.us> - 2025-05-20 17:49 +0200
Re: Anybody Using IPv6? The Natural Philosopher <tnp@invalid.invalid> - 2025-05-20 17:02 +0100
Re: Anybody Using IPv6? "Carlos E. R." <robin_listas@es.invalid> - 2025-05-20 18:34 +0200
Re: Anybody Using IPv6? Marc Haber <mh+usenetspam1118@zugschl.us> - 2025-05-20 19:43 +0200
Re: Anybody Using IPv6? "Carlos E. R." <robin_listas@es.invalid> - 2025-05-20 19:52 +0200
Re: Anybody Using IPv6? Marc Haber <mh+usenetspam1118@zugschl.us> - 2025-05-20 23:14 +0200
Re: Anybody Using IPv6? "Carlos E. R." <robin_listas@es.invalid> - 2025-05-21 03:46 +0200
Re: Anybody Using IPv6? Marc Haber <mh+usenetspam1118@zugschl.us> - 2025-05-21 08:05 +0200
Re: Anybody Using IPv6? Nuno Silva <nunojsilva@invalid.invalid> - 2025-05-21 09:13 +0100
Re: Anybody Using IPv6? "Carlos E. R." <robin_listas@es.invalid> - 2025-05-21 10:42 +0200
Re: Anybody Using IPv6? Marc Haber <mh+usenetspam1118@zugschl.us> - 2025-05-21 13:16 +0200
Re: Anybody Using IPv6? "Carlos E. R." <robin_listas@es.invalid> - 2025-05-21 14:00 +0200
Re: Anybody Using IPv6? Marco Moock <mm@dorfdsl.de> - 2025-05-21 14:30 +0200
Re: Anybody Using IPv6? "Carlos E. R." <robin_listas@es.invalid> - 2025-05-21 14:45 +0200
Re: Anybody Using IPv6? Marc Haber <mh+usenetspam1118@zugschl.us> - 2025-05-21 16:53 +0200
Re: Anybody Using IPv6? "Carlos E. R." <robin_listas@es.invalid> - 2025-05-21 18:30 +0200
Re: Anybody Using IPv6? Marco Moock <mm@dorfdsl.de> - 2025-05-21 17:16 +0200
Re: Anybody Using IPv6? "Carlos E. R." <robin_listas@es.invalid> - 2025-05-21 18:31 +0200
Re: Anybody Using IPv6? Marc Haber <mh+usenetspam1118@zugschl.us> - 2025-05-21 16:52 +0200
Re: Anybody Using IPv6? The Natural Philosopher <tnp@invalid.invalid> - 2025-05-21 16:47 +0100
Re: Anybody Using IPv6? Marc Haber <mh+usenetspam1118@zugschl.us> - 2025-05-21 21:14 +0200
Re: Anybody Using IPv6? "Carlos E. R." <robin_listas@es.invalid> - 2025-05-21 19:16 +0200
Re: Anybody Using IPv6? not@telling.you.invalid (Computer Nerd Kev) - 2025-05-22 09:10 +1000
Re: Anybody Using IPv6? Marc Haber <mh+usenetspam1118@zugschl.us> - 2025-05-22 09:27 +0200
Re: Anybody Using IPv6? "Carlos E. R." <robin_listas@es.invalid> - 2025-05-22 18:16 +0200
Re: Anybody Using IPv6? Marc Haber <mh+usenetspam1118@zugschl.us> - 2025-05-22 20:51 +0200
Re: Anybody Using IPv6? Richard Kettlewell <invalid@invalid.invalid> - 2025-05-21 17:35 +0100
Re: Anybody Using IPv6? Marc Haber <mh+usenetspam1118@zugschl.us> - 2025-05-21 21:18 +0200
Re: Anybody Using IPv6? Richard Kettlewell <invalid@invalid.invalid> - 2025-05-21 21:10 +0100
Re: Anybody Using IPv6? "Carlos E. R." <robin_listas@es.invalid> - 2025-05-21 19:22 +0200
Re: Anybody Using IPv6? Marc Haber <mh+usenetspam1118@zugschl.us> - 2025-05-21 21:21 +0200
Re: Anybody Using IPv6? vallor <vallor@cultnix.org> - 2025-05-21 03:16 +0000
Re: Anybody Using IPv6? Marc Haber <mh+usenetspam1118@zugschl.us> - 2025-05-21 08:07 +0200
Re: Anybody Using IPv6? vallor <vallor@cultnix.org> - 2025-05-21 12:45 +0000
Re: Anybody Using IPv6? Marc Haber <mh+usenetspam1118@zugschl.us> - 2025-05-21 17:19 +0200
Re: Anybody Using IPv6? "Carlos E. R." <robin_listas@es.invalid> - 2025-05-21 10:39 +0200
Re: Linux advocacy "Carlos E. R." <robin_listas@es.invalid> - 2025-05-18 11:07 +0200
Re: Linux advocacy Marc Haber <mh+usenetspam1118@zugschl.us> - 2025-05-19 08:14 +0200
Re: Linux advocacy "Carlos E. R." <robin_listas@es.invalid> - 2025-05-19 12:27 +0200
Re: Linux advocacy Marc Haber <mh+usenetspam1118@zugschl.us> - 2025-05-19 14:54 +0200
Re: Anybody Using IPv6? "Carlos E. R." <robin_listas@es.invalid> - 2025-05-19 15:37 +0200
Re: Anybody Using IPv6? Marc Haber <mh+usenetspam1118@zugschl.us> - 2025-05-19 16:36 +0200
Re: Anybody Using IPv6? "Carlos E. R." <robin_listas@es.invalid> - 2025-05-19 17:31 +0200
Re: Anybody Using IPv6? The Natural Philosopher <tnp@invalid.invalid> - 2025-05-19 17:58 +0100
Re: Linux advocacy Richard Kettlewell <invalid@invalid.invalid> - 2025-05-18 09:46 +0100
Re: Linux advocacy Richard Kettlewell <invalid@invalid.invalid> - 2025-05-18 09:49 +0100
Re: Anybody Using IPv6? "Carlos E. R." <robin_listas@es.invalid> - 2025-05-17 20:50 +0200
Re: Anybody Using IPv6? % <pursent100@gmail.com> - 2025-05-17 11:52 -0700
Re: Anybody Using IPv6? Popping Mad <rainbow@colition.gov> - 2025-05-18 03:26 -0400
Re: Anybody Using IPv6? c186282 <c186282@nnada.net> - 2025-05-20 00:17 -0400
Re: Anybody Using IPv6? The Natural Philosopher <tnp@invalid.invalid> - 2025-05-20 10:35 +0100
Re: Anybody Using IPv6? Marc Haber <mh+usenetspam1118@zugschl.us> - 2025-05-20 12:14 +0200
Re: Anybody Using IPv6? The Natural Philosopher <tnp@invalid.invalid> - 2025-05-20 11:35 +0100
Re: Anybody Using IPv6? Marc Haber <mh+usenetspam1118@zugschl.us> - 2025-05-20 17:45 +0200
Re: Anybody Using IPv6? The Natural Philosopher <tnp@invalid.invalid> - 2025-05-20 17:00 +0100
Re: Anybody Using IPv6? "Carlos E. R." <robin_listas@es.invalid> - 2025-05-20 11:55 +0200
Re: Anybody Using IPv6? Marc Haber <mh+usenetspam1118@zugschl.us> - 2025-05-20 09:59 +0200
Re: Anybody Using IPv6? Nuno Silva <nunojsilva@invalid.invalid> - 2025-05-20 09:21 +0100
Re: Anybody Using IPv6? The Natural Philosopher <tnp@invalid.invalid> - 2025-05-20 10:37 +0100
Re: Anybody Using IPv6? Marc Haber <mh+usenetspam1118@zugschl.us> - 2025-05-20 12:15 +0200
Re: Anybody Using IPv6? The Natural Philosopher <tnp@invalid.invalid> - 2025-05-20 11:33 +0100
Re: Anybody Using IPv6? Marc Haber <mh+usenetspam1118@zugschl.us> - 2025-05-20 17:47 +0200
Re: Anybody Using IPv6? The Natural Philosopher <tnp@invalid.invalid> - 2025-05-20 17:01 +0100
Re: Anybody Using IPv6? c186282 <c186282@nnada.net> - 2025-05-20 23:42 -0400
Re: Anybody Using IPv6? Marc Haber <mh+usenetspam1118@zugschl.us> - 2025-05-21 08:03 +0200
Re: Anybody Using IPv6? Bobbie Sellers <bliss-sf4ever@dslextreme.com> - 2025-05-21 08:21 -0700
Re: Anybody Using IPv6? Marc Haber <mh+usenetspam1118@zugschl.us> - 2025-05-21 21:13 +0200
Re: Anybody Using IPv6? Nuno Silva <nunojsilva@invalid.invalid> - 2025-05-21 23:09 +0100
Re: Anybody Using IPv6? Marc Haber <mh+usenetspam1118@zugschl.us> - 2025-05-22 09:25 +0200
Re: Anybody Using IPv6? "Carlos E. R." <robin_listas@es.invalid> - 2025-05-21 10:47 +0200
Re: Anybody Using IPv6? Marc Haber <mh+usenetspam1118@zugschl.us> - 2025-05-18 09:59 +0200
Re: Anybody Using IPv6? "Carlos E. R." <robin_listas@es.invalid> - 2025-05-18 11:12 +0200
Re: Anybody Using IPv6? rbowman <bowman@montana.com> - 2025-05-18 20:18 +0000
Re: Anybody Using IPv6? Marc Haber <mh+usenetspam1118@zugschl.us> - 2025-05-19 08:11 +0200
Re: Anybody Using IPv6? rbowman <bowman@montana.com> - 2025-05-19 07:11 +0000
Re: Anybody Using IPv6? Marc Haber <mh+usenetspam1118@zugschl.us> - 2025-05-19 09:33 +0200
Re: Anybody Using IPv6? Marc Haber <mh+usenetspam1118@zugschl.us> - 2025-05-19 08:09 +0200
csiph-web