MCPcopy Index your code

hub / github.com/miekg/dns / functions

Functions1,687 in github.com/miekg/dns

↓ 7 callersFunctionTsigGenerate
TsigGenerate fills out the TSIG record attached to the message. The message should contain a "stub" TSIG RR with the algorithm, key name (owner name o
tsig.go:166
↓ 7 callersMethodZ
Z returns the Z part of the OPT RR as a uint16 with only the 14 least significant bits used.
edns.go:233
↓ 7 callersFunctiongetSoa
()
dnssec_test.go:14
↓ 7 callersFunctionisDDD
(s T)
msg.go:550
↓ 7 callersMethodunpack
unpack unpacks an RR from wire format. This will only be called on a new and empty RR type with only the header populated. It will only be called if
dns.go:55
↓ 6 callersMethodComment
Comment returns an optional text comment that occurred alongside the RR.
scan.go:277
↓ 6 callersMethodMatch
Match returns true if a name matches the NSEC3 record
nsecx.go:79
↓ 6 callersFunctionRunLocalTLSServer
(laddr string, config *tls.Config)
server_test.go:139
↓ 6 callersMethodSign
Sign signs an RRSet. The signature needs to be filled in with the values: Inception, Expiration, KeyTag, SignerName and Algorithm. The rest is copied
dnssec.go:252
↓ 6 callersFunctionTsigGenerateWithProvider
TsigGenerateWithProvider is similar to TsigGenerate, but allows for a custom TsigProvider.
tsig.go:171
↓ 6 callersMethodVersion
Version returns the EDNS version used. Only zero is defined.
edns.go:161
↓ 6 callersFunctionequal
equal compares a and b while ignoring case. It returns true when equal otherwise false.
labels.go:190
↓ 6 callersFunctionescapeByte
escapeByte returns the \DDD escaping of b which must satisfy b < ' ' || b > '~'.
types.go:653
↓ 6 callersFunctionisDigit
Helpers for dealing with escaped bytes
msg.go:548
↓ 6 callersFunctionmsgLenWithCompressionMap
(dns *Msg, compression map[string]struct{})
msg.go:982
↓ 6 callersMethodpack
pack packs the records RDATA into wire format. The header will already have been packed into msg.
dns.go:49
↓ 6 callersFunctionpackRR
(rr RR, msg []byte, off int, compression compressionMap, compress bool)
msg.go:582
↓ 5 callersMethodCopy
Copy copies the Rdata into the PrivateRdata argument.
privaterr.go:18
↓ 5 callersMethodErr
()
scan.go:746
↓ 5 callersFunctionHashName
HashName hashes a string (label) according to RFC 5155. It returns the hashed string in uppercase.
nsecx.go:10
↓ 5 callersMethodIn
TODO: Think we need to away to stop the transfer In performs an incoming transfer with the server in a. If you would like to set the source IP, or som
xfr.go:49
↓ 5 callersFunctionNewServeMux
NewServeMux allocates and returns a new ServeMux.
serve_mux.go:24
↓ 5 callersMethodPackBuffer
PackBuffer packs a Msg, using the given buffer buf. If buf is too small a new buffer is allocated.
msg.go:727
↓ 5 callersFunctionPrivateHandle
PrivateHandle registers a private resource record type. It requires string and numeric representation of private RR type and generator function as arg
privaterr.go:97
↓ 5 callersFunctionPrivateHandleRemove
PrivateHandleRemove removes definitions required to support private RR type.
privaterr.go:106
↓ 5 callersMethodRead
Read implements the net.Conn read method.
client.go:319
↓ 5 callersMethodReadMsg
ReadMsg reads a message from the connection co. If the received message contains a TSIG record the transaction signature is verified. This method alwa
client.go:254
↓ 5 callersFunctionReadRR
ReadRR reads the RR contained in r. The string file is used in error reporting and to resolve relative $INCLUDE directives. See NewRR for more docum
scan.go:127
↓ 5 callersMethodRemove
Remove creates a dynamic update packet deletes RR from a RRSset, see RFC 2136 section 2.5.4 See [ANY] on how to make RRs without rdata.
update.go:109
↓ 5 callersMethodSetAxfr
SetAxfr creates message for requesting an AXFR.
defaults.go:98
↓ 5 callersMethodSetRcode
SetRcode creates an error message suitable for the request.
defaults.go:54
↓ 5 callersMethodSetTsig
SetTsig appends a TSIG RR to the message. This is only a skeleton TSIG RR that is added as the last RR in the additional section. The TSIG is calculat
defaults.go:108
↓ 5 callersMethodVerify
Verify validates an RRSet with the signature and key. This is only the cryptographic test, the signature validity period must be checked separately. T
dnssec.go:363
↓ 5 callersFunctionfatalIfErr
(err error)
types_generate.go:328
↓ 5 callersFunctionintToBytes
Helper function for packing and unpacking
msg.go:560
↓ 5 callersMethodisStarted
()
server.go:270
↓ 5 callersFunctionnewTsig
(algo string)
tsig_test.go:13
↓ 5 callersFunctionnextByte
(s string, offset int)
types.go:674
↓ 5 callersFunctionpackDataAplPrefix
(p *APLPrefix, msg []byte, off int)
msg_helpers.go:685
↓ 5 callersFunctionpackStringTxt
(s []string, msg []byte, off int)
msg_helpers.go:399
↓ 5 callersFunctionparseDstFromOOB
parseDstFromOOB takes oob data and returns the destination IP.
udp.go:69
↓ 5 callersFunctionreverseInt16
(m map[uint16]string)
reverse.go:41
↓ 5 callersFunctionsplitN
SplitN splits a string into N sized string chunks. This might become an exported function once.
types.go:1694
↓ 5 callersFunctionstringToTTL
stringToTTL parses things like 2w, 2m, etc, and returns the time in seconds.
scan.go:1234
↓ 5 callersFunctiontypeToInt
Extract the rr number from TYPExxx
scan.go:1221
↓ 5 callersFunctionunpackRRslice
unpackRRslice unpacks msg[off:] into an []RR. If we cannot unpack the whole array, then it will return nil
msg.go:653
↓ 5 callersFunctionunpackStringTxt
(msg []byte, off int)
msg_helpers.go:391
↓ 4 callersMethodActivateAndServe
ActivateAndServe starts a nameserver with the PacketConn or Listener configured in *Server. Its main use is to start a server from systemd.
server.go:369
↓ 4 callersFunctionCertificateToDANE
CertificateToDANE converts a certificate to a hex string as used in the TLSA or SMIMEA records.
dane.go:12
↓ 4 callersFunctionClientConfigFromReader
ClientConfigFromReader works like ClientConfigFromFile but takes an io.Reader as argument
clientconfig.go:33
↓ 4 callersFunctionIsRRset
IsRRset reports whether a set of RRs is a valid RRset as defined by RFC 2181. This means the RRs need to have the same type, name, and class.
defaults.go:302
↓ 4 callersMethodNameList
NameList returns all of the names that should be queried based on the config. It is based off of go's net/dns name building, but it does not check the
clientconfig.go:108
↓ 4 callersFunctionRunLocalServer
(pc net.PacketConn, l net.Listener, opts ...func(*Server))
server_test.go:71
↓ 4 callersMethodSetIncludeFS
SetIncludeFS provides an [fs.FS] to use when looking for the target of $INCLUDE directives. ($INCLUDE must still be enabled separately by calling [Zo
scan.go:250
↓ 4 callersMethodSetUDPSize
SetUDPSize sets the UDP buffer size.
edns.go:188
↓ 4 callersMethodString
()
types.go:803
↓ 4 callersMethodUnpack
Unpack unpacks a binary message to a Msg structure.
msg.go:883
↓ 4 callersFunctioncheckInProgressQueriesAtShutdownServer
(t *testing.T, srv *Server, addr string, client *Client)
server_test.go:719
↓ 4 callersFunctiondddToByte
(s T)
msg.go:554
↓ 4 callersFunctionhashFromAlgorithm
(alg uint8)
hash.go:22
↓ 4 callersFunctionmakeSVCBKeyValue
makeSVCBKeyValue returns an SVCBKeyValue struct with the key or nil for reserved keys.
svcb.go:188
↓ 4 callersMethodpackBufferWithCompressionMap
packBufferWithCompressionMap packs a Msg, using the given buffer buf.
msg.go:739
↓ 4 callersFunctionpackUint48
(i uint64, msg []byte, off int)
msg_helpers.go:230
↓ 4 callersMethodparse
parse parses an RR from zone file format. This will only be called on a new and empty RR type with only the header populated.
dns.go:60
↓ 4 callersFunctionsprintTxtOctet
(s string)
types.go:572
↓ 4 callersFunctionstringToCm
Parse LOC records' <digits>[.<digits>][mM] into a mantissa exponent format. Token should contain the entire string (i.e. no spaces allowed)
scan.go:1269
↓ 4 callersFunctiontypeBitMapLen
typeBitMapLen is a helper function which computes the "maximum" length of a the NSEC Type BitMap field.
msg_helpers.go:524
↓ 4 callersFunctionunpackDataAplPrefix
(msg []byte, off int)
msg_helpers.go:749
↓ 4 callersFunctionunpackDataNsec
(msg []byte, off int)
msg_helpers.go:462
↓ 4 callersFunctionunpackMsgHdr
(msg []byte, off int)
msg.go:1180
↓ 3 callersFunctionClientConfigFromFile
ClientConfigFromFile parses a resolv.conf(5) like file and returns a *ClientConfig.
clientconfig.go:23
↓ 3 callersFunctionDial
Dial connects to the address on the named network.
client.go:393
↓ 3 callersMethodHijack
Hijack lets the caller take over the connection. After a call to Hijack(), the DNS package will not do anything with the connection.
server.go:59
↓ 3 callersFunctionIsDomainName
IsDomainName checks if s is a valid domain name, it returns the number of labels and true, when a domain name is valid. Note that non fully qualified
defaults.go:182
↓ 3 callersMethodOut
Out performs an outgoing transfer with the client connecting in w. Basic use pattern: ch := make(chan *dns.Envelope) tr := new(dns.Transfer) var w
xfr.go:223
↓ 3 callersMethodReadPrivateKey
ReadPrivateKey reads a private key from the io.Reader q. The string file is only used in error reporting. The public key must be known, because some c
dnssec_keyscan.go:28
↓ 3 callersMethodRemoteAddr
RemoteAddr returns the net.Addr of the client that sent the current request.
server.go:46
↓ 3 callersMethodSetExtendedRcode
SetExtendedRcode sets the EDNS extended RCODE field. If the RCODE is not an extended RCODE, will reset the extended RCODE field to 0.
edns.go:178
↓ 3 callersMethodSize
()
hash.go:17
↓ 3 callersFunctionTrimDomainName
TrimDomainName trims origin from s if s is a subdomain. This function will never return "", but returns "@" instead (@ represents the apex domain).
dnsutil/util.go:48
↓ 3 callersFunctionTsigVerify
TsigVerify verifies the TSIG on a message. If the signature does not validate the returned error contains the cause. If the signature is OK, the error
tsig.go:221
↓ 3 callersFunctionTsigVerifyWithProvider
TsigVerifyWithProvider is similar to TsigVerify, but allows for a custom TsigProvider.
tsig.go:226
↓ 3 callersMethodUDPSize
UDPSize returns the UDP buffer size.
edns.go:183
↓ 3 callersFunctionUnpackRRWithHeader
UnpackRRWithHeader unpacks the record type specific payload given an existing RR_Header.
msg.go:619
↓ 3 callersFunctionareSVCBPairArraysEqual
areSVCBPairArraysEqual checks if SVCBKeyValue arrays are equal after sorting their copies. arrA and arrB have equal lengths, otherwise zduplicate.go w
svcb.go:903
↓ 3 callersFunctioncompressionMapsDifference
(a map[string]struct{}, b map[string]int)
length_test.go:277
↓ 3 callersFunctioncompressionMapsEqual
(a map[string]struct{}, b map[string]int)
length_test.go:263
↓ 3 callersFunctioncorrectSource
correctSource takes oob data and returns new oob data with the Src equal to the Dst
udp.go:85
↓ 3 callersMethodgetTimeoutForRequest
Return the appropriate timeout for a specific request
client.go:375
↓ 3 callersFunctiongetTypeStruct
getTypeStruct will take a type and the package scope, and return the (innermost) struct if the type is considered a RR type (currently defined as thos
types_generate.go:71
↓ 3 callersFunctiongetTypeStruct
getTypeStruct will take a type and the package scope, and return the (innermost) struct if the type is considered a RR type (currently defined as thos
msg_generate.go:35
↓ 3 callersFunctionnoRdata
dynamicUpdate returns true if the Rdlength is zero.
msg_helpers.go:172
↓ 3 callersFunctionpackDataA
(a net.IP, msg []byte, off int)
msg_helpers.go:26
↓ 3 callersFunctionpackUint64
(i uint64, msg []byte, off int)
msg_helpers.go:251
↓ 3 callersMethodparseDNSKEY
(c *zlexer, o, typ string)
scan_rr.go:1215
↓ 3 callersMethodparseDS
(c *zlexer, o, typ string)
scan_rr.go:1433
↓ 3 callersMethodparseError
(msg string, end int)
generate.go:112
↓ 3 callersMethodpublicKeyECDSA
publicKeyECDSA returns the Curve public key from the DNSKEY record.
dnssec.go:569
↓ 3 callersMethodpublicKeyRSA
publicKeyRSA returns the RSA public key from a DNSKEY record.
dnssec.go:516
↓ 3 callersMethodreadByte
readByte returns the next byte from the input
dnssec_keyscan.go:216
← previousnext →101–200 of 1,687, ranked by callers