plugin/template: Add client IP data (#4034)

Signed-off-by: Maxime Guyot <maxime@root314.com>
This commit is contained in:
Maxime Guyot
2020-08-10 10:38:18 +02:00
committed by GitHub
parent 7d5f5b87a4
commit b3d08f9b21
3 changed files with 30 additions and 1 deletions

View File

@@ -48,6 +48,7 @@ Each resource record is a full-featured [Go template](https://golang.org/pkg/tex
* `.Group` a map of the named capture groups.
* `.Message` the complete incoming DNS message.
* `.Question` the matched question section.
* `.Remote` clients IP address
* `.Meta` a function that takes a metadata name and returns the value, if the
metadata plugin is enabled. For example, `.Meta "kubernetes/client-namespace"`