COREDNS-AUTOPATH(7)
π¦ COREDNS-AUTOPATH(7) β the autopath glow-up from the CoreDNS Plugins manual β¨
πΈ NAME πΈ
autopath β allows for server-side search path completion. Periodt, that's the whole vibe: it does the search-path work on the server side for you π
.
β¨ DESCRIPTION β¨
Okay so bestie, here's how autopath moves. If the autopath plugin sees a query that matches the first element of the configured search path, it will follow the chain of search path elements and return the first reply that is not NXDOMAIN. On any failures, the original reply is returned. No cap.
Because autopath returns a reply for a name that wasn't the original question, it will add a CNAME that points from the original name (with the search path element in it) to the name of this answer. It's giving "I found your answer, but let me introduce it properly" energy π.
Heads up: there are several known issues β see the BUGS section below, iykyk π.
π οΈ SYNTAX π οΈ
autopath [ZONE...] RESOLV-CONF
ZONESβ zonesautopathshould be authoritative for. In the synopsis this is the[ZONE...]part, bestie.RESOLV-CONFβ points to aresolv.conflike file, or uses a special syntax to point to another plugin. For instance,@kuberneteswill call out to thekubernetesplugin (for each query) to retrieve the search list it should use. Obsessed with a dynamic search list? This is that π¦.
If a plugin implements the AutoPather interface then it can be used by autopath.
π METRICS π
If monitoring is enabled (via the prometheus plugin) then the following metric is exported:
coredns_autopath_success_total{server}β counter of successfully autopath-ed queries.
The server label is explained in the metrics plugin documentation. Slay, observability π.
π EXAMPLES π
autopath my-resolv.conf
Use my-resolv.conf as the file to get the search path from. This file only needs to have one line: search domain1 domain2 .... Literally one line, no extra drama π.
autopath @kubernetes
Use the search path dynamically retrieved from the kubernetes plugin. Main character energy: the search path comes straight from the cluster π.
π BUGS π
Okay bestie, this is the part where we keep it real, because autopath has some known issues:
- In Kubernetes,
autopathcan derive the wrong namespace of a client Pod (and therefore wrong search path) in the following case. To properly build the search path of a client,autopathneeds to know the namespace of the Pod making a DNS request. To do this, it relies on thekubernetesplugin's Pod cache to resolve the client's IP address to a Pod. The Pod cache is maintained by an API watch on Pods. When Pod IP assignments change, the Kubernetes API notifies CoreDNS via the API watch. However, that notification is not instantaneous. In the case that a Pod is deleted, and its IP is immediately provisioned to a Pod in another namespace, and that new Pod make a DNS lookup before the API watch can notify CoreDNS of the change,autopathwill resolve the IP to the previous Pod's namespace. π - In Kubernetes,
autopathis not compatible with Pods running from Windows nodes. Not the vibe on Windows nodes, fr fr π. - If the server side search ultimately results in a negative answer (e.g.
NXDOMAIN), then the client will fruitlessly search all paths manually, thus negating theautopathoptimization. Big yikes: that undoes the whole point π.
π Cute little sign-off: this page comes from CoreDNS, the manual name is COREDNS-AUTOPATH(7), and the date on it is March 2026. Byeee, go slay your search path π«Άβ¨
π¦ where this page comes from
- nixpkgs unstable: coredns 1.14.7
- opensuse-leap 16.0: coredns-extras 1.15.0-bp160.1.1 Β· Apache-2.0 AND MPL-2.0
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms