[98268] in North American Network Operators' Group

home help back first fref pref prev next nref lref last post

RE: Where did freeipdb IP utility site go?

daemon@ATHENA.MIT.EDU (Barry Shein)
Fri Jul 27 12:45:26 2007

From: Barry Shein <bzs@world.std.com>
Date: Fri, 27 Jul 2007 12:40:59 -0400
To: nanog@merit.edu
In-Reply-To: <200707262142.WAA05225@sunf10.rd.bbc.co.uk>
Errors-To: owner-nanog@merit.edu



 > 
 > > Are there any "good" tools for IPv6 address management?
 > 

Is there a "BCP" (convention, whatever) for storing IPv6 addresses
into SQL databases? Particularly where you need to mix them with IPv4
addresses.

I know postgresql has an ipv6 type but I was hoping for something more
portable. The best I could come up with was packed decimal(39) and
assume that if more than 32 bits are set it's IPv6 (ignoring the
special case of all zeros etc.) The other would be to just use 4
unsigned long ints similarly but it makes comparison and other ops
clunky.

-- 
        -Barry Shein

The World              | bzs@TheWorld.com           | http://www.TheWorld.com
Purveyors to the Trade | Voice: 800-THE-WRLD        | Login: Nationwide
Software Tool & Die    | Public Access Internet     | SINCE 1989     *oo*

home help back first fref pref prev next nref lref last post