Storing IP addresses in MariaDB

What’s the best datatype to store IP addresses as in MariaDB? 1 It’s 2025 and, according to Google, nearly half the internet now supports IPv6 . So whichever data type is the best, it will have to support both IPv4 and IPv6 addresses. There are, in that case, three main options: VARBINARY(16) : With this option you could store IPv6 addresses as 16-byte byte-strings and IPv4 addresses as 4-byte…