Skip to content

Instantly share code, notes, and snippets.

Avatar

Peter van Dijk Habbie

View GitHub Profile
View gist:3c5a27c67e34a2c3cd19646bfdc94c5b
Start: 2020-07-13T14:02:08+0200
HOST: plato Loss% Snt Last Avg Best Wrst StDev
1.|-- _gateway 0.0% 5 9.9 8.3 1.6 10.8 3.8
2.|-- 10.160.7.1 0.0% 5 12.4 12.5 11.3 15.6 1.8
3.|-- 212.142.56.65 0.0% 5 12.1 13.3 12.0 17.5 2.4
4.|-- asd-rc0001-cr101-be112-2. 0.0% 5 13.6 13.4 12.5 15.0 1.0
5.|-- nl-ams14a-ri1-ae50-0.aort 0.0% 5 12.9 12.9 11.7 13.4 0.7
6.|-- ??? 100.0 5 0.0 0.0 0.0 0.0 0.0
7.|-- be12194.ccr41.lon13.atlas 0.0% 5 107.3 106.8 105.5 107.9 0.9
8.|-- be12497.ccr41.par01.atlas 0.0% 5 108.0 107.5 106.6 108.1 0.6
View gist:9be0732948370b37ef13bf9549fb7ae7
; <<>> DiG 9.11.5-P4-5.1+deb10u1-Debian <<>> ns mx. @o.mx-ns.mx. +dnssec
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 42371
;; flags: qr aa rd; QUERY: 1, ANSWER: 7, AUTHORITY: 0, ADDITIONAL: 8
;; WARNING: recursion requested but not available
;; OPT PSEUDOSECTION:
; EDNS: version: 0, flags: do; udp: 4096
View default.diff
diff --git a/pdns/dnsdist-console.cc b/pdns/dnsdist-console.cc
index bb9d6998b..997d8ae7c 100644
--- a/pdns/dnsdist-console.cc
+++ b/pdns/dnsdist-console.cc
@@ -419,7 +419,7 @@ const std::vector<ConsoleKeyword> g_consoleKeywords{
{ "inClientStartup", true, "", "returns true during console client parsing of configuration" },
{ "includeDirectory", true, "path", "include configuration files from `path`" },
{ "KeyValueLookupKeyQName", true, "[wireFormat]", "Return a new KeyValueLookupKey object that, when passed to KeyValueStoreLookupAction or KeyValueStoreLookupRule, will return the qname of the query, either in wire format (default) or in plain text if 'wireFormat' is false" },
- { "KeyValueLookupKeySourceIP", true, "", "Return a new KeyValueLookupKey object that, when passed to KeyValueStoreLookupAction or KeyValueStoreLookupRule, will return the source IP of the client in network byte-order." },
+ { "KeyValueLookupKeySourceIP", true, "[v4Mask [,v6Mask]]", "Return a new KeyValueLookupKey object that
View default.txt
traceroute to 216.239.38.105 (216.239.38.105), 30 hops max, 60 byte packets
1 192.168.0.1 4.541 ms
2 10.160.7.1 24.593 ms
3 212.142.55.65 25.378 ms
4 213.51.7.92 25.514 ms
5 213.51.64.186 25.676 ms
6 213.46.182.22 26.273 ms
7 *
8 108.170.241.225 26.947 ms
9 108.170.241.173 25.910 ms
View default.diff
diff --git a/pdns/backends/gsql/gsqlbackend.cc b/pdns/backends/gsql/gsqlbackend.cc
index 3687c61a5..c0ed58ced 100644
--- a/pdns/backends/gsql/gsqlbackend.cc
+++ b/pdns/backends/gsql/gsqlbackend.cc
@@ -1088,6 +1088,29 @@ bool GSQLBackend::setDomainMetadata(const DNSName& name, const std::string& kind
void GSQLBackend::lookup(const QType &qtype,const DNSName &qname, int domain_id, DNSPacket *pkt_p)
{
+ try {
+ ostringstream out;
View default.txt
ID = 76551 (CSK), flags = 257, tag = 0, algo = 15, bits = 256 Inactive Published ( ED25519 )
CSK DNSKEY = 123.example.com. IN DNSKEY 257 3 15 Vp0h5QdNT3v2Qit/Hqh9uMzzFGp2BX7sLKoXESOKMO4= ; ( ED25519 )
ID = 124311 (CSK), flags = 257, tag = 0, algo = 15, bits = 256 Inactive Published ( ED25519 )
CSK DNSKEY = 123.example.com. IN DNSKEY 257 3 15 T345XvXrHTxC0duE3Fm0GbU7lKD0Uef7QlTUI65Txiw= ; ( ED25519 )
ID = 142842 (CSK), flags = 257, tag = 0, algo = 15, bits = 256 Inactive Published ( ED25519 )
CSK DNSKEY = 123.example.com. IN DNSKEY 257 3 15 KO3n5RJjqC/sUR6dJ3vRiPMrKvik7Etml4CjkE2YlXc= ; ( ED25519 )
ID = 173748 (CSK), flags = 257, tag = 0, algo = 15, bits = 256 Inactive Published ( ED25519 )
CSK DNSKEY = 123.example.com. IN DNSKEY 257 3 15 wjI5a1MoeZ3rjmk/tKQLtguEeBGJh4JhTbicJLGu81k= ; ( ED25519 )
ID = 195999 (CSK), flags = 257, tag = 0, algo = 15, bits = 256 Inactive Published ( ED25519 )
CSK DNSKEY = 123.example.com. IN DNSKEY 257 3 15 eY0YdvQfC8t3E6Cq8dRDq0b/rp+U1O3V5J0W91f7UOo= ; ( ED25519 )
View gist:b053c99207163070e29435694acb378d
$ go run ./main.go -dotPinAlgorithm 225 -qtype TXT validpin.dotpin.powerdns.club
;; opcode: QUERY, status: NOERROR, id: 0
;; flags: qr aa; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 1
;; QUESTION SECTION:
;validpin.dotpin.powerdns.club. IN TXT
;; ANSWER SECTION:
validpin.dotpin.powerdns.club. 3600 IN TXT "This zone's delegation has one DS record, for the DoT pin. This zone is unsigned."
View default.diff
diff --git a/draft-vandijk-dprive-ds-dot-signal-and-pin/draft-vandijk-dprive-ds-dot-signal-and-pin.md b/draft-vandijk-dprive-ds-dot-signal-and-pin/draft-vandijk-dprive-ds-dot-signal-and-pin.md
index f3e7770..918e5d3 100644
--- a/draft-vandijk-dprive-ds-dot-signal-and-pin/draft-vandijk-dprive-ds-dot-signal-and-pin.md
+++ b/draft-vandijk-dprive-ds-dot-signal-and-pin/draft-vandijk-dprive-ds-dot-signal-and-pin.md
@@ -98,13 +98,21 @@ The pseudo DNSKEY type can be used in CDNSKEY and CDS, as defined in RFC7344, re
# Implementation
The subsection titles in this section attempt to follow the terminology from [@RFC8499] in as far as it has suitable terms.
+'Implementation' is understood to mean both 'code changes' and 'operational changes' here.
View gist:028b075ce6ac2e8a7b074788d7046f71
peter@plato:~ $ perl -e 'print "A" x 32768'|perl -pne 's{\b([a-zA-Z])\1{3,}\b}{x}'|hexdump -C
00000000 78 |x|
00000001
peter@plato:~ $ perl -e 'print "A" x 32769'|perl -pne 's{\b([a-zA-Z])\1{3,}\b}{x}'|hexdump -C
00000000 41 41 41 41 41 41 41 41 41 41 41 41 41 41 41 41 |AAAAAAAAAAAAAAAA|
*
00008001
You can’t perform that action at this time.