On 4/27/25 3:46 AM, François Patte wrote:
Le 27/04/2025 à 07:49, Samuel Sieb a écrit :
On 4/26/25 2:05 PM, François Patte wrote:
Le 24/04/2025 à 23:01, Jonathan Billings a écrit :
On Apr 24, 2025, at 08:28, François Patte <francois.pa...@fdn.fr>
wrote:
am a little bit confused about the dns : I have systemd-resolved
installed and when I list the content of the package (rpm -ql), I
can read on the first line:
/etc/systemd/resolved.conf
But there is no /etc/systemd/resolved.conf
There is a /usr/lib/systemd/resolved.conf but it is a file the
lines of whitch are all commented...
It may take some getting used to, but systemd has multiple places
where configuration is read, and the files in /etc/systemd overrides
the files in /usr/lib/systemd. The idea is that the OS packages
files in /usr/lib and /etc is for local changes. The same occurs
with systemd service units.
You can create (or copy over from /usr/lib/systemd) the /etc/
systemd/ resolved.conf and use the options that are commented out,
and it will override the file in /usr/lib/systemd.
The package has that file marked as %ghost, it is part of the
package but actually supplied by the package.
Thank you for these explanations (and thank you to Samuel too). Now I
would like to understand something else: I created a /etc/systemd/
resolved.conf file with:
[Resolve]
DNS=80.67.169.12#ns0.fdn.fr 2001:910:800::12#ns0.fdn.fr
FallbackDNS=80.67.169.40#ns1.fdn.fr 2001:910:800::40#ns.fdn.fr
DNSOverTLS=yes
When I ask resolvectl status I get this:
Global
Protocols: LLMNR=resolve -mDNS +DNSOverTLS DNSSEC=no/
unsupported
resolv.conf mode: stub
Current DNS Server: 80.67.169.12#ns0.fdn.fr
DNS Servers: 80.67.169.12#ns0.fdn.fr
2001:910:800::12#ns0.fdn.fr
Fallback DNS Servers: 80.67.169.40#ns1.fdn.fr 2001:910:800::40#ns.fdn.fr
Link 2 (eno1)
Current Scopes: DNS LLMNR/IPv4 LLMNR/IPv6
Protocols: +DefaultRoute LLMNR=resolve -mDNS +DNSOverTLS
DNSSEC=no/unsupported
Current DNS Server: 192.168.1.1
DNS Servers: 80.67.169.12 80.67.169.40 192.168.1.1
DNS Domain: home
Link 3 (wlp6s0)
Current Scopes: none
Protocols: -DefaultRoute LLMNR=resolve -mDNS +DNSOverTLS
DNSSEC=no/unsupported
OK for "global", that is what I want but what is the meaning of "Link
2" ? eno1 is the name of the ethernet device, should I understand
that, in fact my dns resolver is 192.168.1.1, the box, and then the
dns is the one of my ISP?
I would expect that unless you tell it otherwise, it's going to use
the DHCP provided DNS server. If you want to override that, you put
it in the network config for the ethernet adapter.
Ok. But where is defined the network configuration ? I try to find some
dhcp instructions with nmcli but.... no success.
If you really want to use nmcli, the parameter is "ipv4.dns".
Otherwise, it's the DNS setting in the network configuration, which
depends on which desktop you're using.
Once upon a time, there were a file ifcfg-xxx were the ethernet config
was clearly written but times have changed!
Now they're in /etc/NetworkManager/system-connections/
--
_______________________________________________
users mailing list -- users@lists.fedoraproject.org
To unsubscribe send an email to users-le...@lists.fedoraproject.org
Fedora Code of Conduct:
https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives:
https://lists.fedoraproject.org/archives/list/users@lists.fedoraproject.org
Do not reply to spam, report it:
https://pagure.io/fedora-infrastructure/new_issue