From 582da8846284a4eb4c03262b32b3ca03f2613a5a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Christian=20K=C3=B6nig?= Date: Fri, 10 Jun 2022 23:58:53 +0200 Subject: [PATCH] Add >gateway endpoint MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Christian König --- docs/ftldns/telnet-api.md | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/docs/ftldns/telnet-api.md b/docs/ftldns/telnet-api.md index 0df2784..751112f 100644 --- a/docs/ftldns/telnet-api.md +++ b/docs/ftldns/telnet-api.md @@ -167,6 +167,14 @@ Connect via e.g. `telnet 127.0.0.1 4711` or use `echo ">command" | nc 127.0.0.1 86400 ``` -Note that the port can also be `0` if someone decides to disable the DNS server part of Pi-hole + Note that the port can also be `0` if someone decides to disable the DNS server part of Pi-hole + +- `>gateway`: Get the IP of the gateway of the default route and the corresponding interface + + ```text + 192.168.0.1 enp2s0 + ``` + + Note that if no non-default route could be found, `0.0.0.0` and an empty interface string is returned {!abbreviations.md!}