Elektra
0.9.2
|
This plugin validates IP addresses using regular expressions.
`` @section autotoc_md323 Mount
ipaddrplugin to cascading namespace
/tests/ipaddr` kdb mount config.dump /tests/ipaddr dump ipaddr
kdb meta-set /tests/ipaddr/ipv4 check/ipaddr ipv4
kdb set /tests/ipaddr/ipv4 127.0.0.1337
kdb set /tests/ipaddr/ipv4 127.0.0.1 kdb get /tests/ipaddr/ipv4 #> 127.0.0.1
kdb meta-set /tests/ipaddr/address check/ipaddr ""
kdb set /tests/ipaddr/address 1.2.3.4 kdb set /tests/ipaddr/address ::1
kdb set /tests/ipaddr/address bad::ip
kdb set /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.