Y
Hacker News
new
|
ask
|
show
|
jobs
by
chrisdhal
1140 days ago
If you're using a database, use something like Postgres that has this functionality built in[0]. You can store IPs, networks, etc. in a native format that has all sorts of functionality available out of the box.
[0]
https://www.postgresql.org/docs/current/functions-net.html