Merge pull request #721 from pi-hole/gateway

Add >gateway endpoint
This commit is contained in:
DL6ER
2022-06-18 19:02:45 +02:00
committed by GitHub
+9 -1
View File
@@ -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!}