Compare Networks

Learn to programatically compare lists of networks from spreadsheets, text files, and other databases with the Infoblox Grid.

I sort of struggled what to call this blog entry, but at the time, this is what I was trying to do. I was tasked with taking a list of network IP Addresses from router/switch config files and compare them to a different list of networks currently defined in an Infoblox Grid. All I needed was something that worked and that was timely since I didn't have lavish amounts of time.

The logical flow of my script would go something like this:

  1. fetch all Infoblox networ...

Read More...

Store IP Addresses in MongoDB

/ IPAM, Node.js, JS, MongoDB

Store IP Addresses in MongoDB

Programatically store IPv4 and/or IPv6 IP addresses in MongoDB.

Recently, I wanted to write some IP Address Management tools using server side Javascript (nodejs) and be able to store IP Address data into a MongoDB backend database. Simple! I'll just perform IP-to-Decimal conversions like I always do. Problem solved. End of article? Wait! Not so fast...

That won't work since:

  • Javascript's native Number data type only supports 64-bit integers
  • MongoDB doesn't have a data types that would support BigInts - so, I couldn't use one of the many Number-to-BigInt libraries

The solution...

Read More...