Fedora 33 will switch to systemd-resolved for name resolution.
Resolved has a bundled list of DNS used in case of network settings misconfiguration, i.e. the DHCP doesn’t provide the DNS address and probably other cases, for instance when you don’t intentionally set a DNS address in the network configuration.
These DNS are called FallbackDNS. You can see them with this command:
|
|
As you can see, these addresses are the ones owned by Google and Cloudflare.
The fact has raised some concerns. The systemd developers as well as the Fedora maintainer seems unwilling to change this default behavior. After all these are the most reliable publicy accessible DNS addresses, and a fallback DNS is better than resolution errors.
In normal circumstances you will probably contact these fallback DNS only in some edge cases. Hovewer a DNS is always configured even if you intentionally leaved the corresponding field blank in the network configuration.
Anyway you would like to avoid the eventuality to contact Google and Cloudflare for all the valid reasons you could have, but that I will not discuss in this post.
How to change the bundled FallbackDNS addresses
It is pretty easy to change the default FallbackDNS values. Edit the resolved.conf file:
|
|
Uncomment and edit the FallbackDNS option.
|
|
You can leave it empty. Or you can add some addresses you trust
|
|
Then restart the resolved service.
|
|
Check the result:
|
|