dnsutils

package
v0.0.0-...-73d3301 Latest Latest
Warning

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

Go to latest
Published: Mar 28, 2016 License: GPL-2.0 Imports: 1 Imported by: 0

Documentation

Overview

Package dnsutils contains useful features to manage DNS structures

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FilterFirstRR

func FilterFirstRR(rrs []dns.RR, rrType uint16) dns.RR

Useful function to return the first occurence of a resource record of a specific type. This method is faster than filterRRs when we are interested in only one record (like SOA)

func FilterRRs

func FilterRRs(rrs []dns.RR, rrType uint16) []dns.RR

Useful function to retrieve all records of a specific type from the DNS response message. We assume that the resource record is an instance of the specific type based on the Rrtype attribute

Types

This section is empty.

Jump to

Keyboard shortcuts

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