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 ?!
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.