Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/DNSCrypt/dnscrypt-resolvers
/ functions
Functions
118 in github.com/DNSCrypt/dnscrypt-resolvers
⨍
Functions
118
◇
Types & classes
18
↓ 20 callers
Method
Close
()
www/db.go:245
↓ 15 callers
Function
read_lp_string
Read a length-prefixed string. Returns (string, new_offset).
utils/stamp-info.py:40
↓ 9 callers
Method
_encode_lp
Encode a string using LP (length-prefixed) format.
utils/update-cert-hashes.py:172
↓ 9 callers
Method
_encode_lp
Encode a string using LP (length-prefixed) format.
utils/add-cert-hash.py:189
↓ 7 callers
Function
format_props
Parse the properties byte into flags.
utils/stamp-info.py:72
↓ 6 callers
Function
read_vlp_list
Read a variable-length-prefixed list of items. Returns (list, new_offset).
utils/stamp-info.py:54
↓ 4 callers
Method
GetAllStats
()
www/db.go:359
↓ 4 callers
Method
RebuildStats
RebuildStats recomputes all resolver_stats from test_results. Call this once to migrate existing data, or to fix any inconsistencies.
www/db.go:460
↓ 4 callers
Method
_encode_vlp
Encode items using VLP format.
utils/update-cert-hashes.py:159
↓ 4 callers
Method
_encode_vlp
Encode items using VLP format.
utils/add-cert-hash.py:176
↓ 4 callers
Method
_parse_vlp
Parse VLP (variable-length-prefixed) data.
utils/update-cert-hashes.py:142
↓ 4 callers
Method
_parse_vlp
Parse VLP (variable-length-prefixed) data.
utils/add-cert-hash.py:159
↓ 4 callers
Function
buildCertQuery
buildCertQuery builds a TXT certificate query for name, padded to padTo bytes.
www/tester.go:731
↓ 4 callers
Function
parseDBTime
parseDBTime parses a time string from the database, handling both RFC3339 format (returned by go-sqlite3 driver) and the space-separated format used w
www/db.go:18
↓ 3 callers
Function
isDigit
(b byte)
www/tester.go:592
↓ 3 callers
Function
read_lp_string
Read a length-prefixed string.
utils/add-doh-ip.py:36
↓ 3 callers
Method
sendDNSQuery
sendDNSQuery sends a DNS query over an established connection and returns the response. The caller must set the connection deadline before calling thi
www/tester.go:476
↓ 3 callers
Function
write_lp_string
Write a length-prefixed string.
utils/add-doh-ip.py:43
↓ 2 callers
Function
NewParser
(dir string)
www/parser.go:31
↓ 2 callers
Function
NewTester
(db *DB, concurrency int, timeout time.Duration)
www/tester.go:48
↓ 2 callers
Method
ParseAll
()
www/parser.go:35
↓ 2 callers
Method
TestAll
(resolvers []Resolver)
www/tester.go:73
↓ 2 callers
Function
buildAnonPacket
buildAnonPacket constructs an anonymized DNSCrypt packet
www/tester.go:868
↓ 2 callers
Method
csv_entry
(self)
utils/format.py:67
↓ 2 callers
Method
doDoHRequest
(ctx context.Context, client *http.Client, urlStr string, wireFormat []byte, method string)
www/tester.go:369
↓ 2 callers
Function
get_cert_hashes
Connect to server via TLS and return TBS certificate hashes for certs sent by server.
utils/update-cert-hashes.py:260
↓ 2 callers
Function
packTXTRR
packTXTRR unescapes a TXT record string from the dns library Copied from dnscrypt-proxy's dnsutils.go
www/tester.go:560
↓ 2 callers
Method
parse
Parse a DNS stamp string into a DNSStamp object.
utils/update-cert-hashes.py:53
↓ 2 callers
Method
parse
(raw_entry)
utils/format.py:28
↓ 2 callers
Function
parse_der_length
Parse DER length encoding at the given offset.
utils/update-cert-hashes.py:228
↓ 2 callers
Function
parse_der_length
Parse DER length encoding at the given offset. Returns (content_length, length_field_size) where length_field_size is the number of byte
utils/add-cert-hash.py:344
↓ 2 callers
Method
raceUDPProbes
raceUDPProbes sends every probe to addr on its own UDP socket at the same time and returns the first response that reads back. Racing a large PQ-frien
www/tester.go:744
↓ 2 callers
Function
read_vlp_list
Read a variable-length-prefixed list.
utils/add-doh-ip.py:49
↓ 2 callers
Function
validateDNSCryptCert
"DNSC" validateDNSCryptCert validates a DNSCrypt certificate Certificate format (124 bytes minimum): - Magic: 4 bytes ("DNSC") - ES Version: 2 bytes (
www/tester.go:611
↓ 2 callers
Method
validateDNSCryptResponse
validateDNSCryptResponse validates the DNS response and extracts DNSCrypt certificates
www/tester.go:522
↓ 2 callers
Method
validateRelayResponse
validateRelayResponse checks that the response contains valid DNSCrypt certificate TXT records
www/tester.go:882
↓ 2 callers
Function
write_vlp_list
Write a variable-length-prefixed list.
utils/add-doh-ip.py:66
↓ 1 callers
Method
ClearResolverErrors
ClearResolverErrors updates all failed tests for a resolver to successful, setting their RTT to 0 and clearing error messages, then rebuilds stats. Re
www/db.go:714
↓ 1 callers
Method
GetOrCreateStamp
(resolverID int64, stamp string)
www/db.go:270
↓ 1 callers
Method
GetTestCount
GetTestCount returns the total number of test results and the timestamp of the most recent one
www/db.go:619
↓ 1 callers
Function
NewDB
(path string)
www/db.go:59
↓ 1 callers
Function
NewWebServer
(db *DB, addr string, hideLatency bool)
www/web.go:19
↓ 1 callers
Method
Optimize
Optimize runs VACUUM to reclaim disk space and checkpoints the WAL file.
www/db.go:608
↓ 1 callers
Method
PruneOldTests
PruneOldTests removes test results older than the given duration and updates stats accordingly. Also removes resolvers that have no remaining test res
www/db.go:559
↓ 1 callers
Method
RebuildStatsIfNeeded
RebuildStatsIfNeeded rebuilds stats only if the table is empty but test_results has data.
www/db.go:443
↓ 1 callers
Method
RecordTest
(resolverID int64, stamp string, success bool, rttMs int64, errMsg string)
www/db.go:283
↓ 1 callers
Method
RemoveResolver
RemoveResolver removes a resolver by name along with all its test results, stamps, and stats. Returns an error if the resolver is not found.
www/db.go:635
↓ 1 callers
Method
RemoveStaleResolvers
RemoveStaleResolvers removes resolvers that haven't had a successful response in the given duration. Only removes resolvers that have had at least one
www/db.go:495
↓ 1 callers
Method
RemoveUnreliableResolvers
RemoveUnreliableResolvers removes all resolvers with reliability below the given percentage threshold. Returns the names of removed resolvers.
www/db.go:664
↓ 1 callers
Method
Start
()
www/web.go:23
↓ 1 callers
Method
UpsertResolver
(name, typ, description, sourceFile string)
www/db.go:249
↓ 1 callers
Function
add_ip_to_doh_stamp
Add or replace the IP address in a DoH stamp.
utils/add-doh-ip.py:79
↓ 1 callers
Method
createDoHClient
(serverAddr, hostname string)
www/tester.go:331
↓ 1 callers
Function
createTables
(db *sql.DB)
www/db.go:85
↓ 1 callers
Function
dddToByte
(s []byte)
www/tester.go:588
↓ 1 callers
Function
decode_stamp
Decode a DNS stamp from its sdns:// URL format.
utils/add-doh-ip.py:21
↓ 1 callers
Function
decode_stamp
Decode a DNS stamp from its sdns:// URL format.
utils/stamp-info.py:30
↓ 1 callers
Function
encode_stamp
Encode binary data to a DNS stamp URL.
utils/add-doh-ip.py:30
↓ 1 callers
Function
filterFailures
filterFailures returns resolvers where the last test failed. A resolver is considered failing if it has a LastFail time that is more recent than LastS
www/main.go:188
↓ 1 callers
Method
format
(self)
utils/format.py:52
↓ 1 callers
Function
format_ip
Format IP address for stamp: IPv6 must be in brackets.
utils/add-doh-ip.py:123
↓ 1 callers
Method
format_legacy
(self)
utils/format.py:60
↓ 1 callers
Function
format_pk
Format a public key as colon-separated hex groups.
utils/stamp-info.py:81
↓ 1 callers
Function
get_cert_hashes
Connect to server via TLS and return TBS certificate hashes for certs sent by server. Args: host: IP address or hostname to connect
utils/add-cert-hash.py:250
↓ 1 callers
Method
get_connection_address
Extract the host and port to connect to for TLS.
utils/update-cert-hashes.py:209
↓ 1 callers
Method
get_connection_address
Extract the host and port to connect to for TLS.
utils/add-cert-hash.py:227
↓ 1 callers
Function
get_tbs_hash_from_der
Extract and hash the TBS (To Be Signed) certificate data.
utils/update-cert-hashes.py:240
↓ 1 callers
Function
get_tbs_hash_from_der
Extract and hash the TBS (To Be Signed) certificate data. The TBS certificate is the portion of the certificate that is signed, excludin
utils/add-cert-hash.py:305
↓ 1 callers
Method
handleAPIStats
(rw http.ResponseWriter, r *http.Request)
www/web.go:195
↓ 1 callers
Function
main
()
utils/add-doh-ip.py:198
↓ 1 callers
Function
main
()
utils/update-cert-hashes.py:456
↓ 1 callers
Function
main
()
utils/stamp-info.py:284
↓ 1 callers
Function
main
()
utils/add-cert-hash.py:449
↓ 1 callers
Function
migrateSchema
migrateSchema migrates from the old schema (stamp column in test_results) to the new normalized schema (stamps table with stamp_id reference).
www/db.go:150
↓ 1 callers
Function
padCertQueryTo
padCertQueryTo adds EDNS0 padding so the wire-format query reaches at least padTo bytes.
www/tester.go:713
↓ 1 callers
Method
parse
(raw_entry)
utils/subset.py:19
↓ 1 callers
Method
parse
Parse a DNS stamp string into a DNSStamp object.
utils/add-cert-hash.py:61
↓ 1 callers
Method
parseFile
(path string, typ ResolverType)
www/parser.go:64
↓ 1 callers
Function
parse_stamp
Parse a DNS stamp and return its details as a dictionary.
utils/stamp-info.py:235
↓ 1 callers
Function
print_stamp_info
Print stamp information in a readable format.
utils/stamp-info.py:262
↓ 1 callers
Function
process
(md_path, signatures_to_update)
utils/format.py:144
↓ 1 callers
Function
process
(names_path, md_path)
utils/subset.py:52
↓ 1 callers
Function
process_file
Process a resolver file and update DoH stamps for a specific resolver.
utils/add-doh-ip.py:132
↓ 1 callers
Function
process_file
Process the markdown file and update outdated certificate hashes.
utils/update-cert-hashes.py:384
↓ 1 callers
Function
process_resolver
Read the markdown file, find the resolver, add cert hashes to its stamps.
utils/add-cert-hash.py:364
↓ 1 callers
Function
read_lp_bytes
Read length-prefixed bytes. Returns (bytes, new_offset).
utils/stamp-info.py:47
↓ 1 callers
Method
serialize
Serialize the stamp back to sdns:// string format.
utils/update-cert-hashes.py:177
↓ 1 callers
Method
serialize
Serialize the stamp back to sdns:// string format.
utils/add-cert-hash.py:194
↓ 1 callers
Method
testDNSCrypt
(stamp stamps.ServerStamp)
www/tester.go:400
↓ 1 callers
Method
testDoH
(stamp stamps.ServerStamp)
www/tester.go:214
↓ 1 callers
Method
testDoQ
(stamp stamps.ServerStamp)
www/tester.go:695
↓ 1 callers
Method
testDoT
(stamp stamps.ServerStamp)
www/tester.go:651
↓ 1 callers
Method
testODoHRelay
(stamp stamps.ServerStamp)
www/tester.go:971
↓ 1 callers
Method
testODoHTarget
(stamp stamps.ServerStamp)
www/tester.go:918
↓ 1 callers
Method
testOne
(job TestJob)
www/tester.go:155
↓ 1 callers
Method
testRelay
(stamp stamps.ServerStamp)
www/tester.go:791
↓ 1 callers
Method
updateResolverStats
(resolverID int64, stamp string, success bool, rttMs int64, errMsg string)
www/db.go:306
↓ 1 callers
Method
validateDoHCertHashes
validateDoHCertHashes validates that at least one certificate in the TLS chain matches one of the hashes specified in the stamp. This follows the same
www/tester.go:295
Method
__init__
(self)
utils/update-cert-hashes.py:41
Method
__init__
(self, name, description, stamps)
utils/format.py:22
next →
1–100 of 118, ranked by callers