diff options
Diffstat (limited to 'plugin/rewrite/README.md')
-rw-r--r-- | plugin/rewrite/README.md | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/plugin/rewrite/README.md b/plugin/rewrite/README.md index 680e69722..4e2e49a3a 100644 --- a/plugin/rewrite/README.md +++ b/plugin/rewrite/README.md @@ -206,13 +206,17 @@ rewrites the first local option with code 0xffee, setting the data to "abcd". Eq } ~~~ -* A variable data is specified with a pair of curly brackets `{}`. Following are the supported variables: +* A variable data is specified with a pair of curly brackets `{}`. Following are the supported variables by default: {qname}, {qtype}, {client_ip}, {client_port}, {protocol}, {server_ip}, {server_port}. +Any plugin that can provide it's own additional variables by implementing metadata.Provider interface. If you are going to use metadata variables then metadata plugin must be enabled. Example: -~~~ -rewrite edns0 local set 0xffee {client_ip} +~~~ corefile +. { + metadata + rewrite edns0 local set 0xffee {client_ip} +} ~~~ ### EDNS0_NSID |