ddns-scripts: Update knot resolver regexp
authorDenis Shulyaka <Shulyaka@gmail.com>
Tue, 16 Jul 2024 10:54:54 +0000 (13:54 +0300)
committerDenis Shulyaka <Shulyaka@gmail.com>
Wed, 17 Jul 2024 10:44:36 +0000 (13:44 +0300)
commitebeae334d9ff39d81898a7d8b5275151518318f1
treee72705055503f984fcb4e768d04eaaba76eeb6b4
parent1016f8f1ba41b743bff905cf27b6c6f2b8de6c8e
ddns-scripts: Update knot resolver regexp

The output format of `khost` has changed. This commit fixes the regexp
for IPv4. It fixes the issue of using a custom DNS to resolve current
address.

```bash
root@localhost:~# khost ns2.afraid.org
ns2.afraid.org. has IPv4 address 69.65.50.223
ns2.afraid.org. has IPv6 address 2001:1850:1:5:800::6b
Host ns2.afraid.org. has no MX record
root@localhost:~# khost --version
khost (Knot DNS), version 3.3.5
```

Signed-off-by: Denis Shulyaka <Shulyaka@gmail.com>
net/ddns-scripts/Makefile
net/ddns-scripts/files/usr/lib/ddns/dynamic_dns_functions.sh