I don't know enough about a function or ip's to determine how my column structure should be to store this. Any suggestions?
Just use unsigned INT for it.
INT
Also see http://lists.mysql.com/cluster/2781 for a discussion.
Using INT is fine when you are dealing with IPv4 addresses. However, 128-bit IPv6 cannot be saved as INT or even BIGINT .
BIGINT