dns

package
v0.0.0-...-06d884a Latest Latest
Warning

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

Go to latest
Published: Apr 3, 2022 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func TypeA

func TypeA(msg *dns.Msg) error

TypeA query type a

func TypeAAAA

func TypeAAAA(msg *dns.Msg) error

TypeAAAA query aaaa

func TypeCAA

func TypeCAA(msg *dns.Msg) error

TypeCAA query caa

func TypeCNAME

func TypeCNAME(msg *dns.Msg) error

TypeCNAME query cname

func TypeHINFO

func TypeHINFO(msg *dns.Msg) error

TypeHINFO hardware type and operating system (OS) information testhinfo 90 IN HINFO "INTEL-386" "Windows"

func TypeMX

func TypeMX(msg *dns.Msg) error

TypeMX query mx

func TypeNS

func TypeNS(msg *dns.Msg) error

TypeNS query ns

func TypePTR

func TypePTR(msg *dns.Msg) error

TypePTR query ptr

func TypeSRV

func TypeSRV(msg *dns.Msg) error

TypeSRV is a specification of servers in the Domain Name System by hostname and port number. With an SRV record, it is possible to make a server discoverable and designate high priority and high availability servers using a single domain without having to know the exact address of the servers.

func TypeTLSA

func TypeTLSA(msg *dns.Msg) error

TypeTLSA TLSA记录格式: 保存证书关联数据

func TypeTXT

func TypeTXT(msg *dns.Msg) error

TypeTXT query txt

func TypeURI

func TypeURI(msg *dns.Msg) error

TypeURI provide a means to resolve hostnames to URIs that can be used by various applications. For resolution the application needs to know both the hostname and the protocol that the URI is to be used for.

It is an alternative to the SRV record. Similar to the SRV record, it returns both weight and priority values which can be used to select an appropriate URI from multiple results. However, unlike the SRV no port number is returned in the URI record since this information is contained (if applicable) in the URI string.

So the returned URI strings from a URI record query can be used directly by the requested application, while the usable URI has to be assembled from the search and results information of an SRV record query.

_ftp._tcp.example.com. 3600 IN URI 10 1 "ftp://ftp.example.com/public"

Types

This section is empty.

Jump to

Keyboard shortcuts

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