diff options
author | 2024-01-10 02:38:17 +0900 | |
---|---|---|
committer | 2024-01-09 12:38:17 -0500 | |
commit | 945db2facd7ba225ec0ae3663d0c319400f2762d (patch) | |
tree | 5e09a1349742a80d4b41af2aaa696fbbf0d389fa /plugin | |
parent | 1ab23019e3606014092e190030b8231e400b64c6 (diff) | |
download | coredns-945db2facd7ba225ec0ae3663d0c319400f2762d.tar.gz coredns-945db2facd7ba225ec0ae3663d0c319400f2762d.tar.zst coredns-945db2facd7ba225ec0ae3663d0c319400f2762d.zip |
Fix typo in view plugin README.md (#6457)
Signed-off-by: keita <keitap@gmail.com>
Diffstat (limited to 'plugin')
-rw-r--r-- | plugin/view/README.md | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/plugin/view/README.md b/plugin/view/README.md index 852272700..d33de8f13 100644 --- a/plugin/view/README.md +++ b/plugin/view/README.md @@ -95,7 +95,7 @@ Note that the regex pattern is enclosed in single quotes, and backslashes are es To evaluate expressions, *view* uses the antonmedv/expr package (https://github.com/antonmedv/expr). For example, an expression could look like: -`(type() == 'A' && name() == 'example.com') || client_ip() == '1.2.3.4'`. +`(type() == 'A' && name() == 'example.com.') || client_ip() == '1.2.3.4'`. All expressions should be written to evaluate to a boolean value. @@ -113,7 +113,7 @@ functions defined below. * `client_ip() string`: client's IP address, for IPv6 addresses these are enclosed in brackets: `[::1]` * `do() bool`: the EDNS0 DO (DNSSEC OK) bit set in the query * `id() int`: query ID -* `name() string`: name of the request (the domain name requested) +* `name() string`: name of the request (the domain name requested ending with a dot): `example.com.` * `opcode() int`: query OPCODE * `port() string`: client's port * `proto() string`: protocol used (tcp or udp) |