Is it possible to input preferred DNS server addresses during installation?

I installed Fedora 35 to my hard disk a few days ago.

During installation, I noticed that I was not given a choice to input my preferred DNS server addresses.

By the way, I disabled internet connectivity during the installation.

How do I input my preferred DNS server addresses?

Welcome to ask.:fedora:edora @sabrina

With resolvectl you can see how the settings are.

resolvectl dns LINK you can change the dns you prefer.

resolvectl --help shows you a lot of other options.

p.s.
You might have to be more specific in how and which DE you are installing. As I do understand you would like to set dns manually before starting the install process ?!

1 Like

Yes sure can you please look into this website it has described the easy way

And if you need dot edit this file and put your own
/etc/systemd/resolved.conf

You might have to be more specific in how and which DE you are installing

It doesn’t matter which DE I’m going to install, does it?

As I do understand you would like to set dns manually before starting the install process ?!

That’s right. With Debian using “Expert install” mode, I can set my preferred DNS server addresses.

Why would you want to do that?

Anyways, disable connectivity (as you did) and the problem is solved. The installer doesn’t need an internet connection. After install set your custom DNS.

The easiest by far would be to use your network’s DHCP server (router?) to define a custom DNS for all DHCP clients (including your live system/ installer). Once you boot the live system of the installer, your system has already made some DNS requests (time.fedora, ping.fedora, dnf repodata on mirror.fedora…) for which it did not use your custom DNS

Manually configuring the resolv.conf is only a temporary change. The default for Fedora is to use systemd-resolved, so you should use resolvectl to update it. The other main available method that is used in RHEL/CentOS, etc., is NetworkManager. You can use nmtui-editor to update the DNS for the connection and restart NetworkManager if you’re not using the new systemd service.

Manually updating resolv.conf if helpful for testing, but the changes will get overwritten on next reboot or service restart (systemd-resolved/NetworkManager), so you’ll want to use one of the above methods to make the change permanent.