dnsutil

package
v0.0.0-...-71af635 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 25, 2016 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Overview

Package dnsutil contains DNS related helper functions.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Dedup

func Dedup(m *dns.Msg) *dns.Msg

Dedup de-duplicates a message.

func DuplicateCNAME

func DuplicateCNAME(r *dns.CNAME, records []dns.RR) bool

DuplicateCNAME returns true if r already exists in records.

func ExtractAddressFromReverse

func ExtractAddressFromReverse(reverseName string) string

ExtractAddressFromReverse turns a standard PTR reverse record name into an IP address. This works for ipv4 or ipv6.

54.119.58.176.in-addr.arpa. becomes 176.58.119.54. If the conversion failes the empty string is returned.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL