aboutsummaryrefslogtreecommitdiffstats
path: root/README.md
diff options
context:
space:
mode:
Diffstat (limited to 'README.md')
-rw-r--r--README.md10
1 files changed, 10 insertions, 0 deletions
diff --git a/README.md b/README.md
index fc2ae51..4aeb9d6 100644
--- a/README.md
+++ b/README.md
@@ -69,6 +69,7 @@ served by the built-in web server, which can be enabled in `zdnsrc`.
### Examples
+Read the log:
```shell
$ curl -s 'http://127.0.0.1:8053/log/v1/?n=1' | jq .
[
@@ -86,6 +87,7 @@ $ curl -s 'http://127.0.0.1:8053/log/v1/?n=1' | jq .
]
```
+Read the cache:
```shell
$ curl -s 'http://127.0.0.1:8053/cache/v1/?n=1' | jq .
[
@@ -109,6 +111,14 @@ $ curl -s 'http://127.0.0.1:8053/cache/v1/?n=1' | jq .
]
```
+Clear the cache:
+```shell
+$ curl -s -XDELETE 'http://127.0.0.1:8053/cache/v1/' | jq .
+{
+ "message": "Cleared cache"
+}
+```
+
## Port redirection
Most operating systems expect to find their DNS resolver on UDP port 53.