This is an old revision of the document!
Since Debian 13 ”Trixie”, the resolv.conf is generated by the systemd-resolved, the systemd Resolver Daemon.
To get an overview over the currently configured resolvers we run the resolvectl command:
root@machine:~# resolvectl
Global
Protocols: +LLMNR -mDNS -DNSOverTLS DNSSEC=no/unsupported
resolv.conf mode: stub
DNS Servers: 127.0.0.1 ::1
Link 2 (eth0)
Current Scopes: DNS LLMNR/IPv4 LLMNR/IPv6
Protocols: +DefaultRoute +LLMNR -mDNS -DNSOverTLS DNSSEC=allow-downgrade/supported
Current DNS Server: 127.0.0.1
DNS Servers: 127.0.0.1 ::1
Default Route: yes
The section Global refers to a configuration which is used if no other configuration is provided.
The section eth0 refers to a configuration used for that particular interface.