Elektra
0.8.24
|
This plugin validates IP addresses using regular expressions.
`` <h1>Mount
ipaddrplugin to cascading namespace
/tests/ipaddr` kdb mount config.dump /tests/ipaddr dump ipaddr
/tests/ipaddr/ipv4
kdb setmeta /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 setmeta /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.