$darkmode
Elektra 0.11.0
|
This plugin validates IP addresses using regular expressions.
See installation. The package is called libelektra5-experimental
.
`` @section autotoc_md361 Mount
ipaddrplugin to cascading namespace
/tests/ipaddr` kdb mount config.dump /tests/ipaddr dump ipaddr
kdb meta-set spec:/tests/ipaddr/ipv4 check/ipaddr ipv4
kdb set system:/tests/ipaddr/ipv4 127.0.0.1337
kdb set system:/tests/ipaddr/ipv4 127.0.0.1 kdb get system:/tests/ipaddr/ipv4 #> 127.0.0.1
kdb meta-set spec:/tests/ipaddr/address check/ipaddr ""
kdb set system:/tests/ipaddr/address 1.2.3.4 kdb set system:/tests/ipaddr/address ::1
kdb set system:/tests/ipaddr/address bad::ip
kdb set system:/tests/ipaddr/address 1.2.-3.4
kdb rm -r /tests/ipaddr kdb umount /tests/ipaddr ```
The plugin only checks IP addresses for validity. It is not able to resolve hostnames. If you are looking for a plugin that supports hostnames, check out the network plugin.