I thought I’ll make this thread for all of you out there who have questions but are afraid to ask them. This is your chance!

I’ll try my best to answer any questions here, but I hope others in the community will contribute too!

  • wolf@lemmy.zip
    link
    fedilink
    English
    arrow-up
    3
    ·
    3 months ago

    How do I enable DNS over HTTPS or DNS over TLS for all connections in NetworkManager in Debian 12?

    It is easy to configure custom DNS servers for all connections via a new .conf file in /etc/NetworkManager/conf.d with a servers=8.8.8.8 entry in the [global-dns-domain-*] section.

    How can I configure NetworkManager to use DNS over HTTPS or DNS over TLS via a conf file?

    • d3Xt3rM
      link
      fedilink
      arrow-up
      4
      ·
      edit-2
      3 months ago

      NetworkManager doesn’t support DoH, DoT or other recent protocols like DoQ and DoH3. You’ll need to set up a local DNS resolver / proxy which can handle those protocols. You could use dnsproxy for this. Once you set it up, you can just use “127.0.0.1” as your DNS server in NetworkManager.

      Btw, if possible I’d recommend sticking to DoH3 (DNS-over-HTTP/3) or DoQ (DNS-over-QUIC) - they perform better than DoT and vanilla DoH, and are more reliable as well.