this post was submitted on 01 Feb 2024
14 points (100.0% liked)

Arch Linux

7841 readers
1 users here now

The beloved lightweight distro

founded 5 years ago
MODERATORS
 

There are answers for disabling ipv6 is it possible to force ipv6 instead?

already using https://archlinux.org/mirrorlist/ to select ipv6-capable mirrors

top 8 comments
sorted by: hot top controversial new old
[–] forbiddenlake 3 points 11 months ago* (last edited 11 months ago)

Have you set your system to prefer it in gai.conf?

https://wiki.archlinux.org/title/IPv6#Prefer_IPv4_over_IPv6

You said enforce in the post, but prefer in a comment. Do you mean prefer ipv6, or disable ipv4?

[–] [email protected] 3 points 11 months ago (1 children)

Maybe if you found some way to run it in a namespace with no ipv4 network.

[–] shadowintheday2 2 points 11 months ago

that would work, yes, thank you

[–] [email protected] 1 points 11 months ago* (last edited 11 months ago)

You could use a dns server that does not offer any A records.

[–] thantik 1 points 11 months ago (1 children)

The answers for disabling ipv6 should be giving you the hints needed to force it as well.

[–] shadowintheday2 2 points 11 months ago (1 children)

the opposite of disabling ipv6 is not enforcing it I'd prefer a way to "prefer" ipv6 juist like most browsers do nowadays when using pacman, IF there is one

[–] thantik 1 points 11 months ago

I'm having a hard time finding anything relating to it in pacman source, but it looks like the only option is the 'scorched earth' method of forcing ipv6 on the whole machine rather than just pacman only.

There's also the mirrorlist generator -- https://archlinux.org/mirrorlist/

You could always just generate only ipv6 mirror list.