# Confusing names that people often get wrong.
In the terminology of [RFC 1034](https://tools.ietf.org/html/rfc1034), there are "resolvers" and there are "name servers". "resolver" describes _the entire subsystem_ that user programs use to access "name servers", without regard to any particular architecture. It's the subsystem that queries one or more "name servers" for the data that they publish and pieces together from those data a final answer for the querying application, in the manner described in [RFC 1034 § 5.3.3](https://tools.ietf.org/html/rfc1034#section-5.3.3). A "resolver" is the _overall_ subsystem that does query _resolution_.
The RFC theoretically allows, because _it isn't intended to be Unix-centric_, systems where all of the query resolution mechanism is potentially in some form of shared subsystem that runs inside each individual applications program.
In RFC 1034 terminology, a "stub resolver" is what is generally employed in the Unix and Linux world: a fairly dumb DNS client library running in the application processes, talking the same DNS/UDP and DNS/TCP protocols to an external program running as another process, that actually does the grunt work of query resolution by making back-end transactions and building up the front-end response from them.
"resolver" is such a confusing term, and so often used contrary to the RFCs, that years ago I took to explaining the DNS to people using terminology borrowed from HTTP: _proxy servers_, _content servers_, and _client libraries_ linked into applications.
* The _DNS client library_ in your applications is _almost_ always going to be the BIND DNS client library from ISC. Most C libraries on Unix and Linux systems incorporate the BIND DNS client library. Several other DNS client libraries exist, though, and a minority of applications use them instead.</p><p>The DNS client library does name qualification and finds out what DNS proxy server(s) to talk to, in the manners described in further reading.
* The initial _DNS proxy server_ is, in this particular setup, `systemd-resolved` listening on 127.0.0.53. </p><p>Other Unix and Linux softwares that perform this rôle include Daniel J. Bernstein's `dnscache`, `unbound`, `dnsmasq`, the PowerDNS Recursor, the MaraDNS Recursor ("Deadwood"), and so forth. </p><p>I personally have a local instance of [modified `dnscache`](http://jdebp.eu./Softwares/djbwares/guide/commands/dnscache.xml) (that can inherit its listening sockets) on every machine listening on 127.0.0.1, which is also the default place that the BIND DNS client library expects a proxy DNS server to be, in the absence of explicit configuration.
* `systemd-resolved` talks to other proxy DNS servers, which may well talk to yet further proxy servers, _forwarding_ the query along a chain until the query reaches a _resolving_ proxy server.
* By default, [as the systemd people ship things](https://github.com/systemd/systemd/blob/master/docs/DISTRO_PORTING.md#dns-servers) and unless the person who built the binary package or the local system administrator changes it, the resolving proxy DNS server will be a server run by Google as part of Google Public DNS, and there will be a chain of _forwarding proxy DNS servers_ of length 1.
* If the system administrator has configured `systemd-resolved` to use other proxy DNS servers instead of Google's, the chain will be longer. Examples of such configuration include (in a rough best-to-worst order) using a local resolving proxy DNS server on the LAN, using a proxy DNS server that is running in a router/gateway at the edge of the LAN, or using a third-party proxy DNS server that is out on Internet at large.
* The _resolving proxy DNS server_ at the far end of the chain does the grunt work of query resolution, querying _content DNS servers_ around the world as needed for data which it stitches together to form the final answer, which is then returned back along the chain of proxy DNS servers, including `systemd-resolved` at the near end of that chain, to the DNS client library in the applications.
In RFC 1034 terms, for contrast, the "resolver" here is in fact a huge black box encompassing the BIND DNS Client library, `systemd-resolved`, and Google Public DNS, because it is defined by the RFC as having "user programs" on one side and content DNS servers (providing referrals and database information "directly") on the other. People often will mis-use the term, sometimes because they misunderstand the RFC 1034 architecture-neutral concept of a "resolver" to be the same as one single Unix or Linux server program, which it is not. HTTP terminology does not have the huge black box.
# Further reading
* Jonathan de Boyne Pollard (2000). _["content" and "proxy" DNS servers.](http://jdebp.info./FGA/dns-server-roles.html)_ Frequently Given Answers.
* Jonathan de Boyne Pollard (2004). _[What DNS query resolution is
](http://jdebp.info./FGA/dns-query-resolution.html)_. Frequently Given Answers.
* Jonathan de Boyne Pollard (2017). _[What DNS name qualification is](http://jdebp.info./FGA/dns-name-qualification.html)_. Frequently Given Answers.
* Jonathan de Boyne Pollard (2003). _[Whence one obtains proxy DNS service](http://jdebp.info./FGA/dns-obtaining-proxy-service.html)_. Frequently Given Answers.
* Jonathan de Boyne Pollard (2018). "[The `dnscache`, `tinydns`, and `axfrdns` services](http://jdebp.info./Softwares/nosh/guide/services/djbdns.html)". _nosh Guide_. Softwares.
* https://unix.stackexchange.com/a/449092/5132