netutils

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Dec 9, 2024 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ExtractEdnsSubnet

func ExtractEdnsSubnet(msg *dns.Msg) net.IP

func ParseAnswerSection

func ParseAnswerSection(arr []dns.RR) (ipmap map[string]dns.RR, ip []string, noip []dns.RR)

ParseAnswerSection converts []dns.RR into map of A or AAAA records and slice containing all except A or AAAA

func StripClosingDot

func StripClosingDot(s string) string

StripClosingDot strips the closing dot unless it's "."

func TargetToIP

func TargetToIP(targets []string) (ips []net.IP)

Types

This section is empty.

Jump to

Keyboard shortcuts

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