archinstall icon indicating copy to clipboard operation
archinstall copied to clipboard

Archinstall doesn't redirect /etc/resolv.conf automaticaly

Open SodaSiz opened this issue 3 years ago • 4 comments

You probably forgot to redirect your resolv.conf, you just need to do this command sudo ln -sf /run/systemd/resolve/stub-resolv.conf /etc/resolv.conf

SodaSiz avatar Jul 13 '22 12:07 SodaSiz

I don't believe it is required for the install to work. It looks recommended when using systemd-resolved as it will use 127.0.0.1:53 (provided by systemd-resolved), so that seems like something to investigate.

More info: https://wiki.archlinux.org/title/Systemd-resolved

JoelLarson avatar Jul 15 '22 03:07 JoelLarson

It can be a problem on some apps like Steam

SodaSiz avatar Jul 15 '22 23:07 SodaSiz

I noticed this as well and was searching to see if it was reported.

The man page for systemd-resolved(8) states, of the four possible modes of handling /etc/resolv.conf, stub mode is recommended.

Stub mode is currently the resolv.conf mode on the Archiso. Here is the commit that added the /etc/resolv.conf symlink for this mode. It is reasonable for one to expect stub mode when the network option copy ISO configuration is selected. Instead the result is a resolv.conf mode of foreign. This can be verified with the command resolvectl status.

Here is a relevant ArchWiki entry for Steam: https://wiki.archlinux.org/title/Steam/Troubleshooting#Games_running_with_Proton_5.13+_have_no_Internet_connectivity

I would like to submit a pull request if this is a desired change. Waiting to see what anyone else has to say.

codefiles avatar Jul 18 '22 22:07 codefiles