Documentation ¶
Index ¶
- func PtrNameMagic(name, domain string) (string, error)
- func ReverseDomainName(cidr string) (string, error)
- func TransformIP(address net.IP, transforms []IpConversion) (net.IP, error)
- func TransformIPToList(address net.IP, transforms []IpConversion) ([]net.IP, error)
- func UintToIP(u uint32) net.IP
- type IpConversion
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func PtrNameMagic ¶
PtrNameMagic implements the PTR magic.
func ReverseDomainName ¶
ReverseDomainName turns a CIDR block into a reversed (in-addr) name.
func TransformIP ¶
TransformIP transforms a single ip address. If the transform results in multiple new targets, an error will be returned.
func TransformIPToList ¶
TransformIPToList manipulates an net.IP based on a list of IpConversions. It can potentially expand one ip address into multiple addresses.
Types ¶
type IpConversion ¶
IpConversion describes an IP conversion.
func DecodeTransformTable ¶
func DecodeTransformTable(transforms string) ([]IpConversion, error)
DecodeTransformTable turns a string-encoded table into a list of conversions.
Click to show internal directories.
Click to hide internal directories.