dnsutils

package
v0.0.0-...-264f9d0 Latest Latest
Warning

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

Go to latest
Published: Apr 5, 2024 License: GPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetMinimalTTL

func GetMinimalTTL(m *dnsmsg.Msg) (_ uint32, ok bool)

GetMinimalTTL returns the minimal ttl of this msg.

func ReadMsgFromTCP

func ReadMsgFromTCP(c io.Reader) (*dnsmsg.Msg, int, error)

Note: ReadMsgFromTCP read c twice (header length and then body). Buffered reader is recommended.

func ReadMsgFromUDP

func ReadMsgFromUDP(c io.Reader, bufSize int) (*dnsmsg.Msg, int, error)

func SubtractTTL

func SubtractTTL(m *dnsmsg.Msg, delta uint32)

SubtractTTL subtract delta from every m's RR. If RR's TTL is smaller than delta, the ttl will be set to 1.

Types

This section is empty.

Jump to

Keyboard shortcuts

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