Domain Detective

API Reference

Class

IPAddressExtensions

Namespace DomainDetective
Assembly DomainDetective
Modifiers static

Helper extensions for working with IPAddress instances.

Inheritance

  • Object
  • IPAddressExtensions

Methods

public static String GetSubnetKey(IPAddress ipAddress) #
Returns: String

Returns a string representing the network prefix for grouping.

Parameters

ipAddress System.Net.IPAddress requiredposition: 0
The IP address.

Returns

The /24 prefix for IPv4 or /48 prefix for IPv6 formatted as a string.

public static String ToPtrFormat(IPAddress ipAddress) #
Returns: String

Converts an IPAddress to its PTR format.

Parameters

ipAddress System.Net.IPAddress requiredposition: 0
The IP address to convert.

Returns

The reversed nibble or byte representation suitable for PTR queries.

{{ include "footer" }}