INET_NTOA( )

This MySQL function converts the numeric equivalent of an IP address to its dot-quad notation.

Syntax

Below is the syntax for this command. Text within square brackets (i.e, [ and ] ) are optional. Choices are separated by bars (i.e, | ). Ellipses preceded by a comma indicates a repeating pattern. Ellipses before or after syntax are used to highlight a relevant except from the larger syntax. Text displayed in italic letters represent text that should be replaced with the specific names related to the database (e.g., column with the name of the column).

INET_NTOA(IP_address)

Explanation

This function converts the numeric equivalent of an IP address to its dot-quad notation. The function INET_ATON( ) can be used to reverse the results.

Examples

SELECT INET_NTOA('209654088')
AS 'AT&T';

+--------------+
| AT&T         |
+--------------+
| 12.127.17.72 |
+--------------+