ref: b5afbfb269683d1d5eeb7ff9b3cff9dc87c8bda6
parent: 0b15112b9b0ffe02ba2d8c0c1694a6aee5aaeec1
author: jrmu <jrmu@cloud9p.org>
date: Mon Aug 19 10:14:03 EDT 2024
Add subdomain delegation example
--- a/ndb.ms
+++ b/ndb.ms
@@ -60,3 +60,33 @@
echo -n refresh > /net/dns
.P2
+Suppose you have a server example.com, and you want to delegate subdomain.example.com.
+
+In example.com, you need to have something like this in /lib/ndb/local:
+
+dom=subdomain.example.com soa=delegated
+ ns=ns1.subdomain.example.com
+ ns=ns2.subdomain.example.com
+ dom=ns1.subdomain.example.com ip=198.51.100.3
+ dom=ns2.subdomain.example.com ip=198.51.100.4
+
+Then, in subdomain.example.com, add this to /lib/ndb/local:
+
+sys=ns1 dom=ns1.subdomain.example.com ip=198.51.100.3
+sys=ns2 dom=ns2.subdomain.example.com ip=198.51.100.4
+
+dom=subdomain.example.com soa=
+ refresh=300 ttl=300
+ ns=ns1.subdomain.example.com
+ ns=ns2.subdomain.example.com
+ ip=198.51.100.3
+ dnsslave=ns2.subdomain.example.com
+ mb=username@subdomain.example.com
+ mx=mail.subdomain.example.com
+ txt="v=spf1 mx -all"
+
+dom=3.100.51.198.in-addr.arpa soa=
+ refresh=300 ttl=300
+ ns=ns1.subdomain.example.com
+ ns=ns2.subdomain.example.com
+