summaryrefslogtreecommitdiff
path: root/sites
diff options
context:
space:
mode:
Diffstat (limited to 'sites')
-rw-r--r--sites/pmikkelsen.com/_files/ndb.diff70
-rw-r--r--sites/pmikkelsen.com/plan9/lets_encrypt.md1
2 files changed, 71 insertions, 0 deletions
diff --git a/sites/pmikkelsen.com/_files/ndb.diff b/sites/pmikkelsen.com/_files/ndb.diff
new file mode 100644
index 0000000..b752cd4
--- /dev/null
+++ b/sites/pmikkelsen.com/_files/ndb.diff
@@ -0,0 +1,70 @@
+diff -r 4adb989bc93e sys/src/cmd/ndb/dblookup.c
+--- a/sys/src/cmd/ndb/dblookup.c Tue Nov 03 20:47:14 2020 +0100
++++ b/sys/src/cmd/ndb/dblookup.c Sun Nov 29 16:42:47 2020 +0100
+@@ -40,7 +40,7 @@
+ static RR* srvrr(Ndbtuple*, Ndbtuple*);
+ static RR* txtrr(Ndbtuple*, Ndbtuple*);
+
+-static int implemented[Tall] =
++static int implemented[Tcaa] =
+ {
+ [Ta] 1,
+ [Taaaa] 1,
+@@ -118,7 +118,7 @@
+ rp = nil;
+
+ if(type == Tall){
+- for (type = Ta; type < Tall; type++)
++ for (type = Ta; type < Tcaa; type++)
+ if(implemented[type])
+ rrcat(&rp, dblookup(name, class, type, auth, ttl));
+
+diff -r 4adb989bc93e sys/src/cmd/ndb/dn.c
+--- a/sys/src/cmd/ndb/dn.c Tue Nov 03 20:47:14 2020 +0100
++++ b/sys/src/cmd/ndb/dn.c Sun Nov 29 16:42:47 2020 +0100
+@@ -97,6 +97,7 @@
+ [Tmailb] "mailb",
+ [Tmaila] "maila",
+ [Tall] "all",
++[Tcaa] "caa",
+ 0,
+ };
+
+@@ -1042,7 +1043,7 @@
+ {
+ int i;
+
+- for(i = 0; i <= Tall; i++)
++ for(i = 0; i <= Tcaa; i++)
+ if(rrtname[i] && strcmp(rrtname[i], atype) == 0)
+ return i;
+
+@@ -1061,7 +1062,7 @@
+ int
+ rrsupported(int type)
+ {
+- if(type < 0 || type >Tall)
++ if(type < 0 || type >Tcaa)
+ return 0;
+ return rrtname[type] != nil;
+ }
+@@ -1891,7 +1892,7 @@
+ char *t;
+
+ t = nil;
+- if(type >= 0 && type <= Tall)
++ if(type >= 0 && type <= Tcaa)
+ t = rrtname[type];
+ if(t==nil){
+ snprint(buf, len, "%d", type);
+diff -r 4adb989bc93e sys/src/cmd/ndb/dns.h
+--- a/sys/src/cmd/ndb/dns.h Tue Nov 03 20:47:14 2020 +0100
++++ b/sys/src/cmd/ndb/dns.h Sun Nov 29 16:42:47 2020 +0100
+@@ -71,6 +71,7 @@
+ Tmailb= 253, /* { Tmb, Tmg, Tmr } */
+ Tmaila= 254, /* obsolete */
+ Tall= 255, /* all records */
++ Tcaa= 257, /* Certification authority restriction */
+
+ /* classes */
+ Csym= 0, /* internal symbols */
diff --git a/sites/pmikkelsen.com/plan9/lets_encrypt.md b/sites/pmikkelsen.com/plan9/lets_encrypt.md
index f0b1c07..082485c 100644
--- a/sites/pmikkelsen.com/plan9/lets_encrypt.md
+++ b/sites/pmikkelsen.com/plan9/lets_encrypt.md
@@ -10,6 +10,7 @@ Install certbot on linux and run the following command
certbot certonly --manual -d pmikkelsen.com -d vps1.pmikkelsen.com
and do the challenges, they should be easy.
+I use the diff [here](/_files/ndb.diff) to make 9fronts dns server understand the needed records.
## Importing the cert and private key