MCPcopy Create free account

hub / github.com/miekg/dns / functions

Functions1,687 in github.com/miekg/dns

↓ 3 callersMethodserveTCP
serveTCP starts a TCP listener for the server.
server.go:463
↓ 3 callersFunctionsetUDPSocketOptions
(conn *net.UDPConn)
udp.go:57
↓ 3 callersMethodsignAsIs
(k crypto.Signer, rrset []RR)
dnssec.go:270
↓ 3 callersFunctionstripTsig
Strip the TSIG from the raw message.
tsig.go:325
↓ 3 callersMethodsubNext
()
scan.go:289
↓ 3 callersFunctionsvcbStringToKey
svcbStringToKey returns the numerical code of an SVCB key. Returns svcb_RESERVED for reserved/invalid keys. Accepts unassigned keys as well as experim
svcb.go:70
↓ 3 callersFunctiontempFile
tempDir creates a temporary directory for tests and returns a file path as a result of concatenation of said temporary directory path and provided fil
tmpdir_test.go:12
↓ 3 callersFunctiontruncateLoop
(rrs []RR, size, l int, compression map[string]struct{})
msg_truncate.go:99
↓ 3 callersFunctionunpackDataA
helper functions called from the generated zmsg.go These function are named after the tag to help pack/unpack, if there is no tag it is the name of th
msg_helpers.go:19
↓ 3 callersFunctionunpackUint64
(msg []byte, off int)
msg_helpers.go:244
↓ 2 callersMethodClose
Close implements the ResponseWriter.Close method
server.go:833
↓ 2 callersMethodComment
()
scan.go:1199
↓ 2 callersMethodConnectionState
()
server.go:65
↓ 2 callersFunctionDedup
Dedup removes identical RRs from rrs. It preserves the original ordering. The lowest TTL of any duplicates is used in the remaining one. Dedup modifie
sanitize.go:7
↓ 2 callersMethodDialContext
DialContext connects to the address on the named network, with a context.Context.
client.go:120
↓ 2 callersMethodExchangeContext
ExchangeContext acts like Exchange, but honors the deadline on the provided context, if present. If there is both a context deadline and a configured
client.go:461
↓ 2 callersMethodExchangeWithConn
ExchangeWithConn has the same behavior as Exchange, just with a predetermined connection that will be used instead of creating a new one. Usage patter
client.go:192
↓ 2 callersMethodExchangeWithConnContext
ExchangeWithConnContext has the same behaviour as ExchangeWithConn and additionally obeys deadlines from the passed Context.
client.go:198
↓ 2 callersMethodNext
()
dnssec_keyscan.go:244
↓ 2 callersMethodPack
Pack packs a Msg: it is converted to wire format. If the dns.Compress is true the message will be in compressed wire format.
msg.go:722
↓ 2 callersMethodPeek
()
scan.go:783
↓ 2 callersMethodReadByte
()
generate.go:129
↓ 2 callersFunctionReadFromSessionUDP
ReadFromSessionUDP acts just like net.UDPConn.ReadFrom(), but returns a session object instead of a net.UDPAddr.
udp.go:41
↓ 2 callersMethodReadMsg
ReadMsg reads a message from the transfer connection t.
xfr.go:243
↓ 2 callersMethodReadMsgHeader
ReadMsgHeader reads a DNS message, parses and populates hdr (when hdr is not nil). Returns message as a byte slice to be parsed with Msg.Unpack later
client.go:277
↓ 2 callersMethodRemoveRRset
RemoveRRset creates a dynamic update packet that deletes an RRset, see RFC 2136 section 2.5.2. See [ANY] on how to make RRs without rdata.
update.go:86
↓ 2 callersFunctionReverseAddr
Copied from the official Go code. ReverseAddr returns the in-addr.arpa. or ip6.arpa. hostname of the IP address suitable for reverse DNS (PTR) record
defaults.go:346
↓ 2 callersFunctionRunLocalPacketConnServer
(laddr string, opts ...func(*Server))
server_test.go:123
↓ 2 callersMethodServeDNS
(w ResponseWriter, r *Msg)
server.go:26
↓ 2 callersMethodSetDefaultTTL
SetDefaultTTL sets the parsers default TTL to ttl.
scan.go:219
↓ 2 callersMethodSetVersion
SetVersion sets the version of EDNS. This is usually zero.
edns.go:166
↓ 2 callersMethodSetZ
SetZ sets the Z part of the OPT RR, note only the 14 least significant bits of z are used.
edns.go:238
↓ 2 callersMethodShutdownContext
ShutdownContext shuts down a server. After a call to ShutdownContext, ListenAndServe and ActivateAndServe will return. A context.Context may be passe
server.go:411
↓ 2 callersFunctionSplitDomainName
Holds a bunch of helper functions for dealing with labels. SplitDomainName splits a name string into it's labels. www.miek.nl. returns []string{"www",
labels.go:12
↓ 2 callersMethodString
()
types.go:493
↓ 2 callersMethodString
()
types.go:790
↓ 2 callersMethodString
String returns the text presentation of the Rdata of the Private RR.
privaterr.go:10
↓ 2 callersMethodToRFC3597
ToRFC3597 converts a known RR to the unknown RR representation from RFC 3597.
dns.go:116
↓ 2 callersMethodTsigStatus
TsigStatus returns the status of the Tsig.
server.go:54
↓ 2 callersMethodValidityPeriod
ValidityPeriod uses RFC1982 serial arithmetic to calculate if a signature period is valid. If t is the zero time, the current time is taken other t is
dnssec.go:492
↓ 2 callersMethodWriteMsg
WriteMsg implements the ResponseWriter.WriteMsg method.
server.go:747
↓ 2 callersFunctionaxfrTestingSuite
(t *testing.T, addrstr string)
xfr_test.go:128
↓ 2 callersFunctionescapedNameLen
(s string)
msg.go:1033
↓ 2 callersFunctionescapedStringOffset
escapedStringOffset finds the offset within a string (which may contain escape sequences) that corresponds to a certain byte offset. If the input offs
scan_rr.go:1936
↓ 2 callersFunctioneuiToString
(eui uint64, bits int)
types.go:1662
↓ 2 callersFunctionfatalIfErr
(err error)
duplicate_generate.go:182
↓ 2 callersFunctionfatalIfErr
(err error)
msg_generate.go:347
↓ 2 callersMethodgetReadTimeout
getReadTimeout is a helper func to use system timeout if server did not intend to change it.
server.go:455
↓ 2 callersFunctiongetTypeStruct
(t types.Type, scope *types.Scope)
duplicate_generate.go:29
↓ 2 callersMethodinit
()
server.go:283
↓ 2 callersMethodisCompressible
isCompressible returns whether the msg may be compressible.
msg.go:961
↓ 2 callersFunctionisDomainNameLabelSpecial
isDomainNameLabelSpecial returns true if a domain name label byte should be prefixed with an escaping backslash.
types.go:666
↓ 2 callersMethodisDuplicate
isDuplicate returns whether the two RRs are duplicates.
dns.go:63
↓ 2 callersFunctionisRootLabel
isRootLabel returns whether s or bs, from off to end, is the root label ".". If bs is nil, s will be checked, otherwise bs will be checked.
msg.go:354
↓ 2 callersFunctionisSOAFirst
(in *Msg)
xfr.go:280
↓ 2 callersFunctionlistenTCP
(network, addr string, reuseport, reuseaddr bool)
listen_socket_options.go:71
↓ 2 callersFunctionlocCheckEast
LOC record helper function
scan.go:1372
↓ 2 callersFunctionlocCheckNorth
LOC record helper function
scan.go:1358
↓ 2 callersFunctionmodToPrintf
Convert a $GENERATE modifier 0,0,d to something Printf can deal with.
generate.go:211
↓ 2 callersFunctionnormalizedString
normalizedString returns a normalized string from r. The TTL is removed and the domain name is lowercased. We go from this: DomainName<TAB>TTL<TAB>CLA
sanitize.go:56
↓ 2 callersMethodpack
pack returns the bytes of the option data.
edns.go:247
↓ 2 callersMethodpack
Key returns the numerical key code.
svcb.go:243
↓ 2 callersFunctionpackDataAAAA
(aaaa net.IP, msg []byte, off int)
msg_helpers.go:51
↓ 2 callersFunctionpackDataApl
(data []APLPrefix, msg []byte, off int)
msg_helpers.go:674
↓ 2 callersFunctionpackDataOpt
(options []EDNS0, msg []byte, off int)
msg_helpers.go:430
↓ 2 callersFunctionpackDataSVCB
(pairs []SVCBKeyValue, msg []byte, off int)
msg_helpers.go:615
↓ 2 callersFunctionpackIPSECGateway
(gatewayAddr net.IP, gatewayString string, msg []byte, off int, gatewayType uint8, compression compressionMap,
msg_helpers.go:820
↓ 2 callersFunctionpackKeyWire
(dw *dnskeyWireFmt, msg []byte)
dnssec.go:742
↓ 2 callersFunctionpackSigWire
(sw *rrsigWireFmt, msg []byte)
dnssec.go:705
↓ 2 callersFunctionpackStringOctet
(s string, msg []byte, off int)
msg_helpers.go:454
↓ 2 callersFunctionpackTxtString
(s string, msg []byte, offset int)
msg.go:472
↓ 2 callersMethodparse
String returns the string representation of the value.
svcb.go:246
↓ 2 callersFunctionparseAddrHostUnion
same constants and parsing between IPSECKEY and AMTRELAY
scan_rr.go:1337
↓ 2 callersFunctionparseKey
parseKey reads a private key from r. It returns a map[string]string, with the key-value pairs, or an error when the file is not correct.
dnssec_keyscan.go:150
↓ 2 callersMethodpublicKeyED25519
()
dnssec.go:594
↓ 2 callersFunctionrawSignatureData
Return the raw signature data.
dnssec.go:616
↓ 2 callersMethodreadByte
readByte returns the next byte from the input
scan.go:755
↓ 2 callersFunctionreverseInt
(m map[int]string)
reverse.go:49
↓ 2 callersFunctionreverseInt8
Reverse a map
reverse.go:33
↓ 2 callersFunctionsaltToString
saltToString converts a NSECX salt to uppercase and returns "-" when it is empty.
types.go:1655
↓ 2 callersMethodserveDNS
(m []byte, w *response)
server.go:628
↓ 2 callersMethodserveUDP
serveUDP starts a UDP listener for the server.
server.go:499
↓ 2 callersMethodsetHdr
setHdr set the header in the dns using the binary data in dh.
msg.go:1213
↓ 2 callersFunctionsign
(k crypto.Signer, hashed []byte, hash crypto.Hash, alg uint8)
dnssec.go:325
↓ 2 callersFunctionstringToNodeID
Parse a 64 bit-like ipv6 address: "0014:4fff:ff20:ee64" Used for NID and L64 record.
scan.go:1404
↓ 2 callersFunctionsvcbParamToStr
svcbParamStr converts the value of an SVCB parameter into a DNS presentation-format string.
svcb.go:922
↓ 2 callersFunctionsvcbParseParam
svcbParseParam parses a DNS presentation-format string into an SVCB parameter value.
svcb.go:942
↓ 2 callersFunctiontestConfig
<- NOTE: NO newline.
clientconfig_test.go:22
↓ 2 callersFunctiontoBase32
(b []byte)
msg_helpers.go:157
↓ 2 callersFunctiontsigBuffer
Create a wiredata buffer for the MAC calculation.
tsig.go:263
↓ 2 callersMethodtsigProvider
()
xfr.go:27
↓ 2 callersMethodtsigProvider
()
server.go:260
↓ 2 callersMethodtsigProvider
()
client.go:41
↓ 2 callersFunctionunlockOnce
(l sync.Locker)
server.go:303
↓ 2 callersFunctionunpackDataAAAA
(msg []byte, off int)
msg_helpers.go:44
↓ 2 callersFunctionunpackDataApl
(msg []byte, off int)
msg_helpers.go:736
↓ 2 callersFunctionunpackDataSVCB
(msg []byte, off int)
msg_helpers.go:585
↓ 2 callersFunctionunpackIPSECGateway
(msg []byte, off int, gatewayType uint8)
msg_helpers.go:802
↓ 2 callersFunctionunpackQuestion
(msg []byte, off int)
msg.go:1121
↓ 2 callersFunctionunpackStringOctet
(msg []byte, off int)
msg_helpers.go:449
← previousnext →201–300 of 1,687, ranked by callers