archlinux / archinstall

Arch Linux installer - guided, templates etc.
GNU General Public License v3.0
5.95k stars 514 forks source link

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

Open SodaSiz opened 2 years ago

SodaSiz commented 2 years ago

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

JoelLarson commented 2 years ago

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

SodaSiz commented 2 years ago

It can be a problem on some apps like Steam

codefiles commented 2 years ago

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.