Re: about systemd-resolved

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Le 24/04/2025 à 23:01, Jonathan Billings a écrit :
On Apr 24, 2025, at 08:28, François Patte <francois.patte@xxxxxx> 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?

Thank you for lights.

F.P.

--
_______________________________________________
users mailing list -- users@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe send an email to users-leave@xxxxxxxxxxxxxxxxxxxxxxx
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@xxxxxxxxxxxxxxxxxxxxxxx
Do not reply to spam, report it: https://pagure.io/fedora-infrastructure/new_issue



[Index of Archives]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [EPEL Devel]     [Fedora Magazine]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Desktop]     [Fedora Fonts]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Fedora Sparc]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux