Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/miekg/dns
/ functions
Functions
1,687 in github.com/miekg/dns
⨍
Functions
1,687
◇
Types & classes
180
↓ 2 callers
Function
unpackUint48
(msg []byte, off int)
msg_helpers.go:219
↓ 2 callers
Function
writeTXTStringByte
(s *strings.Builder, b byte)
types.go:617
↓ 1 callers
Function
AddOrigin
AddOrigin adds origin to s if s is not already a FQDN. Note that the result may not be a FQDN. If origin does not end with a ".", the result won't ei
dnsutil/util.go:20
↓ 1 callers
Function
Copy
Copy returns a new RR which is a deep-copy of r.
msg.go:1067
↓ 1 callers
Method
CopyTo
CopyTo copies the contents to the provided message using a deep-copy and returns the copy.
msg.go:1076
↓ 1 callers
Method
Cover
Cover returns true if a name is covered by the NSEC3 record.
nsecx.go:47
↓ 1 callers
Function
DialTimeout
DialTimeout acts like Dial but takes a timeout.
client.go:435
↓ 1 callers
Function
DialTimeoutWithTLS
DialTimeoutWithTLS acts like DialWithTLS but takes a timeout.
client.go:450
↓ 1 callers
Method
Err
()
dnssec_keyscan.go:207
↓ 1 callers
Method
Error
()
scan.go:76
↓ 1 callers
Function
Exchange
Exchange performs a synchronous UDP query. It sends the message m to the address contained in a and waits for a reply. Exchange does not retry a faile
client.go:78
↓ 1 callers
Method
Generate
(msg []byte, t *TSIG)
tsig.go:37
↓ 1 callers
Method
Generate
Generate generates a DNSKEY of the given bit size. The public part is put inside the DNSKEY record. The Algorithm in the key must be set as this will
dnssec_keygen.go:19
↓ 1 callers
Function
GenerateDomain
(r *rand.Rand, size int)
parse_test.go:147
↓ 1 callers
Method
HandleFunc
HandleFunc adds a handler function to the ServeMux for pattern.
serve_mux.go:73
↓ 1 callers
Method
HandleRemove
HandleRemove deregisters the handler specific for pattern from the ServeMux.
serve_mux.go:78
↓ 1 callers
Method
Insert
Insert creates a dynamic update packet that adds an complete RRset, see RFC 2136 section 2.5.1. See [ANY] on how to make RRs without rdata.
update.go:71
↓ 1 callers
Method
Len
()
example_test.go:118
↓ 1 callers
Method
NameNotUsed
NameNotUsed sets the RRs in the prereq section to "Name is in not use" RRs. RFC 2136 section 2.4.5.
update.go:17
↓ 1 callers
Method
NameUsed
NameUsed sets the RRs in the prereq section to "Name is in use" RRs. RFC 2136 section 2.4.4. See [ANY] on how to make RRs without rdata.
update.go:6
↓ 1 callers
Method
Option
Option returns the option code for the option.
edns.go:245
↓ 1 callers
Method
Pack
(buf []byte)
example_test.go:82
↓ 1 callers
Method
RRsetNotUsed
RRsetNotUsed sets the RRs in the prereq section to "RRset does not exist" RRs. RFC 2136 section 2.4.3. See [ANY] on how to make RRs without rdata.
update.go:59
↓ 1 callers
Method
RRsetUsed
RRsetUsed sets the RRs in the prereq section to "RRset exists (value independent -- no rdata)" RRs. RFC 2136 section 2.4.1. See [ANY] on how to make R
update.go:46
↓ 1 callers
Method
ReadPacketConn
ReadPacketConn reads a raw message from a generic net.PacketConn UDP connection. Implementations may alter connection properties, for example the read
server.go:157
↓ 1 callers
Method
ReadTCP
ReadTCP reads a raw message from a TCP connection. Implementations may alter connection properties, for example the read-deadline.
server.go:145
↓ 1 callers
Method
ReadUDP
ReadUDP reads a raw message from a UDP connection. Implementations may alter connection properties, for example the read-deadline.
server.go:148
↓ 1 callers
Method
RemoveName
RemoveName creates a dynamic update packet that deletes all RRsets of a name, see RFC 2136 section 2.5.3 See [ANY] on how to make RRs without rdata.
update.go:98
↓ 1 callers
Method
Reset
()
hash.go:19
↓ 1 callers
Function
RunLocalUnixGramServer
(laddr string, opts ...func(*Server))
server_test.go:154
↓ 1 callers
Function
RunLocalUnixSeqPacketServer
(laddr string)
server_test.go:163
↓ 1 callers
Function
RunLocalUnixServer
(laddr string, opts ...func(*Server))
server_test.go:145
↓ 1 callers
Method
SetNotify
SetNotify creates a notify message, it sets the Question section, generates an Id and sets the Authoritative (AA) bit to true.
defaults.go:44
↓ 1 callers
Method
SetRcodeFormatError
SetRcodeFormatError creates a message with FormError set.
defaults.go:61
↓ 1 callers
Method
SetUpdate
SetUpdate makes the message a dynamic update message. It sets the ZONE section to: z, TypeSOA, ClassINET.
defaults.go:72
↓ 1 callers
Method
String
()
version.go:13
↓ 1 callers
Method
TsigTimersOnly
TsigTimersOnly sets the tsig timers only boolean.
server.go:56
↓ 1 callers
Method
Used
Used sets the RRs in the prereq section to "RRset exists (value dependent -- with rdata)" RRs. RFC 2136 section 2.4.2.
update.go:28
↓ 1 callers
Method
Write
Write implements the ResponseWriter.Write method.
server.go:772
↓ 1 callers
Method
Write
Write implements the net.Conn Write method.
client.go:359
↓ 1 callers
Method
WriteMsg
WriteMsg writes a message through the transfer connection t.
xfr.go:266
↓ 1 callers
Method
WriteMsg
WriteMsg sends a message through the connection co. If the message m contains a TSIG record the transaction signature is calculated.
client.go:343
↓ 1 callers
Function
WriteToSessionUDP
WriteToSessionUDP acts just like net.UDPConn.WriteTo(), but uses a *SessionUDP instead of a net.Addr.
udp.go:51
↓ 1 callers
Function
appendOrigin
(name, origin string)
scan.go:1350
↓ 1 callers
Function
axfrTestingSuiteTLS
(t *testing.T, addrstr string)
xfr_test.go:157
↓ 1 callers
Function
axfrTestingSuiteWithCustomTsig
(t *testing.T, addrstr string, provider TsigProvider)
xfr_test.go:189
↓ 1 callers
Function
axfrTestingSuiteWithMsgNotSigned
(t *testing.T, addrstr string, provider TsigProvider)
xfr_test.go:225
↓ 1 callers
Function
checkReuseaddr
this is just for test compatibility
listen_socket_options.go:62
↓ 1 callers
Function
checkReuseport
this is just for test compatibility
listen_socket_options.go:52
↓ 1 callers
Function
classToInt
Extract the class number from CLASSxx
scan.go:1208
↓ 1 callers
Function
copyNet
copyNet returns a copy of a subnet.
types.go:1685
↓ 1 callers
Function
curveToBuf
Set the public key for X and Y for Curve. The two values are just concatenated.
dnssec_keygen.go:135
↓ 1 callers
Method
dialTimeout
()
client.go:84
↓ 1 callers
Method
equals
equals reports whether two APL prefixes are identical.
types.go:1606
↓ 1 callers
Function
exponentToBuf
Set the public key (the values E and N) for RSA RFC 3110: Section 2. RSA Public KEY Resource Records
dnssec_keygen.go:117
↓ 1 callers
Method
find
(s string)
msg.go:185
↓ 1 callers
Function
fromBase32
(s []byte)
msg_helpers.go:144
↓ 1 callers
Method
fromRFC3597
fromRFC3597 converts an unknown RR representation from RFC 3597 to the known RR type.
dns.go:136
↓ 1 callers
Method
generate
Parse the $GENERATE statement as used in BIND9 zones. See http://www.zytrax.com/books/dns/ch8/generate.html for instance. We are called after '$GENERA
generate.go:21
↓ 1 callers
Function
goroutineLeaked
()
leak_test.go:45
↓ 1 callers
Function
handleRefused
handleRefused returns a HandlerFunc that returns REFUSED for every request it gets.
server.go:83
↓ 1 callers
Function
id
id returns a 16 bits random number to be used as a message id. The random provided should be good enough.
msg.go:84
↓ 1 callers
Method
inAxfr
(q *Msg, c chan *Envelope)
xfr.go:87
↓ 1 callers
Method
inIxfr
(q *Msg, c chan *Envelope)
xfr.go:140
↓ 1 callers
Method
insert
(s string, pos int)
msg.go:177
↓ 1 callers
Function
interestingGoroutines
copied from net/http/main_test.go
leak_test.go:15
↓ 1 callers
Function
isNetworkTimeout
(err error)
client_test.go:270
↓ 1 callers
Function
isSOALast
(in *Msg)
xfr.go:285
↓ 1 callers
Method
len
(off int, compression map[string]struct{})
types.go:971
↓ 1 callers
Method
len
(off int, compression map[string]struct{})
types.go:1193
↓ 1 callers
Function
listenUDP
(network, addr string, reuseport, reuseaddr bool)
listen_socket_options.go:85
↓ 1 callers
Function
loadModule
loadModule retrieves package description for a given module.
types_generate.go:90
↓ 1 callers
Function
loadModule
loadModule retrieves package description for a given module.
duplicate_generate.go:48
↓ 1 callers
Function
loadModule
loadModule retrieves package description for a given module.
msg_generate.go:54
↓ 1 callers
Function
makeDataOpt
makeDataOpt is used to unpack the EDNS0 option(s) from a message.
edns.go:36
↓ 1 callers
Function
makeUDPBuffer
(size int)
server.go:277
↓ 1 callers
Function
newKLexer
(r io.Reader)
dnssec_keyscan.go:192
↓ 1 callers
Function
newZLexer
(r io.Reader)
scan.go:731
↓ 1 callers
Method
pack
()
edns.go:319
↓ 1 callers
Method
pack
Copied: http://golang.org/src/pkg/net/dnsmsg.go
edns.go:488
↓ 1 callers
Method
pack
(msg []byte, off int, compression compressionMap, compress bool)
msg.go:1152
↓ 1 callers
Function
packDataDomainNames
(names []string, msg []byte, off int, compression compressionMap, compress bool)
msg_helpers.go:663
↓ 1 callers
Method
packHeader
packHeader packs an RR header, returning the offset to the end of the header. See PackDomainName for documentation about the compression.
msg_helpers.go:102
↓ 1 callers
Function
packMacWire
(mw *macWireFmt, msg []byte)
tsig.go:434
↓ 1 callers
Function
packOctetString
(s string, msg []byte, offset int)
msg.go:507
↓ 1 callers
Function
packStringAny
(s string, msg []byte, off int)
msg_helpers.go:382
↓ 1 callers
Function
packStringBase32
(s string, msg []byte, off int)
msg_helpers.go:313
↓ 1 callers
Function
packTimerWire
(tw *timerWireFmt, msg []byte)
tsig.go:446
↓ 1 callers
Function
packTsigWire
(tw *tsigWireFmt, msg []byte)
tsig.go:390
↓ 1 callers
Function
packTxt
(txt []string, msg []byte, offset int)
msg.go:454
↓ 1 callers
Method
popEdns0
popEdns0 is like IsEdns0, but it removes the record from the message.
defaults.go:160
↓ 1 callers
Method
readPacketConn
(conn net.PacketConn, timeout time.Duration)
server.go:728
↓ 1 callers
Function
readPrivateKeyECDSA
(m map[string]string)
dnssec_keyscan.go:108
↓ 1 callers
Function
readPrivateKeyED25519
(m map[string]string)
dnssec_keyscan.go:127
↓ 1 callers
Function
readPrivateKeyRSA
Read a private key (file) string and create a public key. Return the private key.
dnssec_keyscan.go:76
↓ 1 callers
Method
readTCP
(conn net.Conn, timeout time.Duration)
server.go:686
↓ 1 callers
Method
readTimeout
()
client.go:94
↓ 1 callers
Method
readUDP
(conn *net.UDPConn, timeout time.Duration)
server.go:710
↓ 1 callers
Function
reuseaddrControl
(network, address string, c syscall.RawConn)
listen_socket_options.go:30
↓ 1 callers
Function
reuseportControl
(network, address string, c syscall.RawConn)
listen_socket_options.go:16
← previous
next →
301–400 of 1,687, ranked by callers