Network Address Types

Learn about network addresses and their types.

Types for network addresses

PostgreSQL includes support for cidr, inet, and macaddr data types. Again, those types are bundled with indexing support and advanced functions, and operator support.

The PostgreSQL documentation chapters entitled Network Address Types and Network Address Functions and Operators cover network address types.

Accessing data

Web server logs are a classic source of data to process, where we find network address types, and the website Honeynet has some free projects for us to play with. This time, we’re using the Scan 34 entry.

> Note: It’s an old project on Honeynet, which is not available now, but we’ve added the required files to the playground in the lesson.

Here’s how to load the sample dataset, once cleaned, into a proper CSV file:

Get hands-on with 1400+ tech skills courses.