console: wire domain registration backends; operator runbook
Co-Authored-By: Astra (gpt-6-astra) via Codex <noreply@openai.com>
5 files changed,
+464
−0
cmd/console/domains.go+82 −0cmd/console/domains_test.go+215 −0cmd/console/main.go+13 −0docs/site/domains-buying.md+149 −0docs/site/nav.json+5 −0
diff --git a/cmd/console/domains.go b/cmd/console/domains.go| new file mode 100644 |
| index 000000000..d4bcc3d8b |
| --- /dev/null |
| +++ b/cmd/console/domains.go |
| @@ -0,0 +1,82 @@ |
| +package main |
| + |
| +import ( |
| + "context" |
| + "errors" |
| + "log" |
| + "strings" |
| + |
| + "github.com/carlosframework/platform/internal/domainreg" |
| + "github.com/carlosframework/platform/internal/registrar" |
| + "github.com/carlosframework/platform/internal/registrar/openprovider" |
| + "github.com/carlosframework/platform/internal/steering" |
| + "github.com/carlosframework/platform/internal/zonehost" |
| + "github.com/carlosframework/platform/internal/zonehost/route53zones" |
| +) |
| + |
| +// domainBackends leaves buying off until every required setting is present. |
| +// Once configured, construction errors stop startup instead of hiding a broken |
| +// deployment. Errors name the setting or adapter, never configuration values |
| +// or wrapped provider errors, which may contain credentials. |
| +func domainBackends( |
| + getenv func(string) string, |
| + newRegistrar func(openprovider.Config) (registrar.Registrar, error), |
| + newZones func(context.Context, route53zones.Config) (*route53zones.Host, error), |
| +) (registrar.Registrar, zonehost.Host, zonehost.ApexSource, *domainreg.Catalog, error) { |
| + values := make(map[string]string) |
| + var missing []string |
| + for _, name := range []string{ |
| + "CARLOS_OPENPROVIDER_URL", |
| + "CARLOS_OPENPROVIDER_USERNAME", |
| + "CARLOS_OPENPROVIDER_PASSWORD", |
| + "CARLOS_DOMAIN_DELEGATION_SET_ID", |
| + "CARLOS_DOMAIN_NAMESERVERS", |
| + "CARLOS_DOMAIN_CATALOG", |
| + } { |
| + value := getenv(name) |
| + if strings.TrimSpace(value) == "" { |
| + missing = append(missing, name) |
| + } |
| + if name != "CARLOS_OPENPROVIDER_PASSWORD" { |
| + value = strings.TrimSpace(value) |
| + } |
| + values[name] = value |
| + } |
| + if len(missing) != 0 { |
| + log.Printf("console: domain buying is off; missing %s", strings.Join(missing, ", ")) |
| + return nil, nil, nil, nil, nil |
| + } |
| + catalog, err := domainreg.LoadCatalog(values["CARLOS_DOMAIN_CATALOG"]) |
| + if err != nil { |
| + return nil, nil, nil, nil, errors.New("console: cannot load CARLOS_DOMAIN_CATALOG; check the file and catalog format") |
| + } |
| + r, err := newRegistrar(openprovider.Config{ |
| + BaseURL: values["CARLOS_OPENPROVIDER_URL"], |
| + Username: values["CARLOS_OPENPROVIDER_USERNAME"], |
| + Password: values["CARLOS_OPENPROVIDER_PASSWORD"], |
| + }) |
| + if err != nil || r == nil { |
| + return nil, nil, nil, nil, errors.New("console: cannot construct domain registrar; check CARLOS_OPENPROVIDER_URL, CARLOS_OPENPROVIDER_USERNAME and CARLOS_OPENPROVIDER_PASSWORD") |
| + } |
| + nameservers := strings.Split(values["CARLOS_DOMAIN_NAMESERVERS"], ",") |
| + for i := range nameservers { |
| + nameservers[i] = strings.TrimSpace(nameservers[i]) |
| + } |
| + cfg := route53zones.Config{ |
| + DelegationSetID: values["CARLOS_DOMAIN_DELEGATION_SET_ID"], |
| + Nameservers: nameservers, |
| + SteeringHost: steeringHost(), |
| + } |
| + if cfg.SteeringHost != "" { |
| + cfg.SteeringZoneID = steering.SteeringZoneID() |
| + } |
| + z, err := newZones(context.Background(), cfg) |
| + if err != nil || z == nil { |
| + return nil, nil, nil, nil, errors.New("console: cannot construct domain zone host; check CARLOS_DOMAIN_DELEGATION_SET_ID, CARLOS_DOMAIN_NAMESERVERS and AWS configuration") |
| + } |
| + var apex zonehost.ApexSource |
| + if cfg.SteeringHost != "" { |
| + apex = z.Steered() |
| + } |
| + return r, z, apex, catalog, nil |
| +} |
diff --git a/cmd/console/domains_test.go b/cmd/console/domains_test.go| new file mode 100644 |
| index 000000000..245519068 |
| --- /dev/null |
| +++ b/cmd/console/domains_test.go |
| @@ -0,0 +1,215 @@ |
| +package main |
| + |
| +import ( |
| + "bytes" |
| + "context" |
| + "fmt" |
| + "log" |
| + "os" |
| + "path/filepath" |
| + "reflect" |
| + "strings" |
| + "testing" |
| + |
| + "github.com/carlosframework/platform/internal/registrar" |
| + "github.com/carlosframework/platform/internal/registrar/openprovider" |
| + "github.com/carlosframework/platform/internal/registrar/registrartest" |
| + "github.com/carlosframework/platform/internal/zonehost/route53zones" |
| +) |
| + |
| +func domainTestEnv() map[string]string { |
| + return map[string]string{ |
| + "CARLOS_OPENPROVIDER_URL": "https://registrar.example/v1", |
| + "CARLOS_OPENPROVIDER_USERNAME": "operator-test-user", |
| + "CARLOS_OPENPROVIDER_PASSWORD": " secret-test-password ", |
| + "CARLOS_DOMAIN_DELEGATION_SET_ID": "NTEST123", |
| + "CARLOS_DOMAIN_NAMESERVERS": "ns1.dns.example, ns2.dns.example,ns3.dns.example,ns4.dns.example", |
| + "CARLOS_DOMAIN_CATALOG": "../../internal/domainreg/testdata/catalog.json", |
| + } |
| +} |
| + |
| +func domainTestLog(t *testing.T) *bytes.Buffer { |
| + t.Helper() |
| + var buf bytes.Buffer |
| + output, flags, prefix := log.Writer(), log.Flags(), log.Prefix() |
| + log.SetOutput(&buf) |
| + log.SetFlags(0) |
| + log.SetPrefix("") |
| + t.Cleanup(func() { |
| + log.SetOutput(output) |
| + log.SetFlags(flags) |
| + log.SetPrefix(prefix) |
| + }) |
| + return &buf |
| +} |
| + |
| +func TestDomainBackendsAllOrNothing(t *testing.T) { |
| + for name := range domainTestEnv() { |
| + for _, missing := range []string{"", " \t\n"} { |
| + t.Run(name+fmt.Sprintf("/%q", missing), func(t *testing.T) { |
| + env := domainTestEnv() |
| + env[name] = missing |
| + logs := domainTestLog(t) |
| + r, z, a, c, err := domainBackends(func(k string) string { return env[k] }, |
| + func(openprovider.Config) (registrar.Registrar, error) { |
| + t.Fatal("registrar constructor called with incomplete configuration") |
| + return nil, nil |
| + }, func(context.Context, route53zones.Config) (*route53zones.Host, error) { |
| + t.Fatal("zone constructor called with incomplete configuration") |
| + return nil, nil |
| + }) |
| + if r != nil || z != nil || a != nil || c != nil || err != nil { |
| + t.Fatal("incomplete configuration must return only nils") |
| + } |
| + if strings.Count(logs.String(), "\n") != 1 || !strings.Contains(logs.String(), name) { |
| + t.Fatalf("want one line naming %s, got %q", name, logs.String()) |
| + } |
| + for _, value := range domainTestEnv() { |
| + if strings.Contains(logs.String(), strings.TrimSpace(value)) { |
| + t.Fatal("missing-setting log contains a configuration value") |
| + } |
| + } |
| + }) |
| + } |
| + } |
| + t.Run("all missing", func(t *testing.T) { |
| + logs := domainTestLog(t) |
| + r, z, a, c, err := domainBackends(func(string) string { return "" }, nil, nil) |
| + if r != nil || z != nil || a != nil || c != nil || err != nil { |
| + t.Fatal("unset configuration must return only nils") |
| + } |
| + if strings.Count(logs.String(), "\n") != 1 { |
| + t.Fatalf("want one log line, got %q", logs.String()) |
| + } |
| + for name := range domainTestEnv() { |
| + if !strings.Contains(logs.String(), name) { |
| + t.Errorf("missing variable %s absent from log", name) |
| + } |
| + } |
| + }) |
| +} |
| + |
| +func TestDomainBackendsSteeredWhenSteeringOn(t *testing.T) { |
| + for _, tc := range []struct { |
| + name, zone, apps, wantHost, wantZone string |
| + }{ |
| + {name: "off", apps: "apps.example"}, |
| + {name: "on", zone: " ZTEST123 ", apps: " Apps.Example ", wantHost: "edge.apps.example", wantZone: "ZTEST123"}, |
| + {name: "invalid zone", zone: "not-a-zone", apps: "apps.example"}, |
| + {name: "missing apps domain", zone: "ZTEST123"}, |
| + } { |
| + t.Run(tc.name, func(t *testing.T) { |
| + t.Setenv("CARLOS_STEERING_ZONE_ID", tc.zone) |
| + t.Setenv("PLATFORM_APPS_DOMAIN", tc.apps) |
| + env := domainTestEnv() |
| + wantR := registrartest.New() |
| + wantZ := &route53zones.Host{} |
| + registrarCalls, zoneCalls := 0, 0 |
| + r, z, a, c, err := domainBackends(func(k string) string { return env[k] }, |
| + func(cfg openprovider.Config) (registrar.Registrar, error) { |
| + registrarCalls++ |
| + if cfg.BaseURL != env["CARLOS_OPENPROVIDER_URL"] || cfg.Username != env["CARLOS_OPENPROVIDER_USERNAME"] || cfg.Password != env["CARLOS_OPENPROVIDER_PASSWORD"] { |
| + t.Fatal("registrar configuration changed, including password whitespace") |
| + } |
| + return wantR, nil |
| + }, func(ctx context.Context, cfg route53zones.Config) (*route53zones.Host, error) { |
| + zoneCalls++ |
| + if ctx == nil || ctx.Err() != nil { |
| + t.Fatal("zone constructor requires a live context") |
| + } |
| + if cfg.DelegationSetID != env["CARLOS_DOMAIN_DELEGATION_SET_ID"] || !reflect.DeepEqual(cfg.Nameservers, []string{"ns1.dns.example", "ns2.dns.example", "ns3.dns.example", "ns4.dns.example"}) { |
| + t.Fatalf("unexpected zone configuration: %+v", cfg) |
| + } |
| + if cfg.SteeringHost != tc.wantHost || cfg.SteeringZoneID != tc.wantZone { |
| + t.Fatalf("steering configuration: %+v", cfg) |
| + } |
| + return wantZ, nil |
| + }) |
| + if err != nil || r != wantR || z != wantZ || c == nil || c.Version != "test-v1" || c.DailyCap != 10 || registrarCalls != 1 || zoneCalls != 1 { |
| + t.Fatalf("configured backends or catalog missing: %v", err) |
| + } |
| + if tc.wantHost == "" { |
| + if a != nil { |
| + t.Fatal("steering off must leave the static fallback available") |
| + } |
| + } else if a != wantZ.Steered() { |
| + t.Fatal("apex source must come from the constructed zone host") |
| + } |
| + }) |
| + } |
| +} |
| + |
| +func TestDomainBackendsErrorNeverLeaksPassword(t *testing.T) { |
| + for _, stage := range []string{"registrar", "zones", "catalog"} { |
| + t.Run(stage, func(t *testing.T) { |
| + t.Setenv("CARLOS_STEERING_ZONE_ID", "") |
| + env := domainTestEnv() |
| + secret := env["CARLOS_OPENPROVIDER_PASSWORD"] |
| + logs := domainTestLog(t) |
| + if stage == "catalog" { |
| + env["CARLOS_DOMAIN_CATALOG"] = filepath.Join(t.TempDir(), secret) |
| + } |
| + r, z, a, c, err := domainBackends(func(k string) string { return env[k] }, |
| + func(cfg openprovider.Config) (registrar.Registrar, error) { |
| + if stage == "registrar" { |
| + return nil, fmt.Errorf("constructor failed: %+v", cfg) |
| + } |
| + return registrartest.New(), nil |
| + }, func(context.Context, route53zones.Config) (*route53zones.Host, error) { |
| + if stage == "zones" { |
| + return nil, fmt.Errorf("constructor failed: %s", secret) |
| + } |
| + return &route53zones.Host{}, nil |
| + }) |
| + if r != nil || z != nil || a != nil || c != nil || err == nil { |
| + t.Fatal("a failed construction must return an error and no partial backends") |
| + } |
| + if strings.Contains(fmt.Sprintf("%+v", err)+logs.String(), strings.TrimSpace(secret)) { |
| + t.Fatal("startup error leaked the password") |
| + } |
| + }) |
| + } |
| +} |
| + |
| +func TestDomainBackendsInvalidCatalog(t *testing.T) { |
| + for _, contents := range []string{"{", `{"version":"bad"}`, `{"version":"v1","daily_cap":1,"tlds":{},"unknown":true}`} { |
| + t.Run(contents, func(t *testing.T) { |
| + env := domainTestEnv() |
| + path := filepath.Join(t.TempDir(), "catalog.json") |
| + if err := os.WriteFile(path, []byte(contents), 0600); err != nil { |
| + t.Fatal(err) |
| + } |
| + env["CARLOS_DOMAIN_CATALOG"] = path |
| + // A bad catalog must fail before either constructor is called. |
| + r, z, a, c, err := domainBackends(func(k string) string { return env[k] }, nil, nil) |
| + if r != nil || z != nil || a != nil || c != nil || err == nil || !strings.Contains(err.Error(), "CARLOS_DOMAIN_CATALOG") { |
| + t.Fatalf("bad catalog must return a named startup error: %v", err) |
| + } |
| + }) |
| + } |
| +} |
| + |
| +func TestDomainBackendsRejectsInvalidNameservers(t *testing.T) { |
| + t.Setenv("CARLOS_STEERING_ZONE_ID", "") |
| + for _, names := range []string{ |
| + "ns1.dns.example,ns2.dns.example,ns3.dns.example", |
| + "ns1.dns.example,ns2.dns.example,ns3.dns.example,ns4.dns.example,ns5.dns.example", |
| + "ns1.dns.example,NS1.DNS.EXAMPLE.,ns3.dns.example,ns4.dns.example", |
| + "ns1.dns.example,,ns3.dns.example,ns4.dns.example", |
| + "ns1.dns.example,ns 2.dns.example,ns3.dns.example,ns4.dns.example", |
| + } { |
| + t.Run(names, func(t *testing.T) { |
| + env := domainTestEnv() |
| + env["CARLOS_DOMAIN_NAMESERVERS"] = names |
| + r, z, a, c, err := domainBackends(func(k string) string { return env[k] }, |
| + func(openprovider.Config) (registrar.Registrar, error) { return registrartest.New(), nil }, |
| + route53zones.New) |
| + if r != nil || z != nil || a != nil || c != nil || err == nil || !strings.Contains(err.Error(), "CARLOS_DOMAIN_NAMESERVERS") { |
| + t.Fatalf("invalid nameservers must fail without partial backends: %v", err) |
| + } |
| + if strings.Contains(err.Error(), names) { |
| + t.Fatal("startup error contains the invalid nameserver value") |
| + } |
| + }) |
| + } |
| +} |
diff --git a/cmd/console/main.go b/cmd/console/main.go| index 774b7710d..d9c3e1ec8 100644 |
| --- a/cmd/console/main.go |
| +++ b/cmd/console/main.go |
| @@ -157,10 +157,13 @@ import ( |
| "github.com/carlosframework/platform/internal/perf" |
| "github.com/carlosframework/platform/internal/plans" |
| "github.com/carlosframework/platform/internal/provision" |
| + "github.com/carlosframework/platform/internal/registrar" |
| + "github.com/carlosframework/platform/internal/registrar/openprovider" |
| "github.com/carlosframework/platform/internal/release" |
| "github.com/carlosframework/platform/internal/rootaws" |
| "github.com/carlosframework/platform/internal/status" |
| "github.com/carlosframework/platform/internal/steering" |
| + "github.com/carlosframework/platform/internal/zonehost/route53zones" |
| ) |
| func main() { |
| @@ -417,6 +420,12 @@ func serve() { |
| return mail.NewAWSProvisioner(ctx, region, mailBoundary) |
| } |
| mailProvisioner, dnsWriter := mailBackends(mailDep, newMailProvisioner, dnsrec.NewRoute53Writer) |
| + domainRegistrar, domainZones, domainApex, domainCatalog, err := domainBackends(os.Getenv, |
| + func(cfg openprovider.Config) (registrar.Registrar, error) { return openprovider.New(cfg) }, |
| + route53zones.New) |
| + if err != nil { |
| + log.Fatal(err) |
| + } |
| // One release.Store, named, because the senders sweep below needs the |
| // same one the server got. |
| rel := openStore(rec) |
| @@ -519,6 +528,10 @@ func serve() { |
| TunnelHost: tunnelHost(), |
| ReservePlatformDomains: reservePlatformDomains(), |
| DomainProof: domainProof(), |
| + Registrar: domainRegistrar, |
| + ZoneHost: domainZones, |
| + DomainApex: domainApex, |
| + DomainCatalog: domainCatalog, |
| StoreProvisioner: storeProvisioner, |
| StoreScanner: storeScanner, |
| ScanSeedFromDeprecatedEnv: seedAntivirus, |
diff --git a/docs/site/domains-buying.md b/docs/site/domains-buying.md| new file mode 100644 |
| index 000000000..7552870de |
| --- /dev/null |
| +++ b/docs/site/domains-buying.md |
| @@ -0,0 +1,149 @@ |
| +# Enable domain buying |
| + |
| +Configure the console to register domains through Openprovider and serve their |
| +DNS from Route 53. Start on dev with an Openprovider sandbox account. Production |
| +needs a membership, a funded registrar balance and working branded nameservers. |
| + |
| +## Prepare the registrar and nameservers |
| + |
| +Activate your Openprovider membership and fund its prepaid balance before |
| +accepting purchases. A purchase is refused when the balance cannot cover the |
| +registrar's cost. Choose catalog prices and cost ceilings for your membership's |
| +rates. Use the sandbox host from your sandbox account's documentation; set it |
| +through `CARLOS_OPENPROVIDER_URL`. The production API base is |
| +[https://api.openprovider.eu/v1](https://api.openprovider.eu/v1). |
| + |
| +Choose a nameserver domain separate from your console and apps domains. The |
| +examples below use `dns.example`, with `ns1` through `ns4` beneath it. Replace |
| +these reserved names with your own domain. |
| + |
| +Follow AWS's white-label procedure: |
| + |
| +1. Create a reusable delegation set in the AWS account that will own bought |
| + zones. Save its ID and four assigned nameservers. Create the nameserver |
| + domain's hosted zone on that set; an existing zone needs recreation. |
| +2. Preserve existing records and delegation details. For bring-up, set NS TTL, |
| + SOA minimum (the last SOA field), and nameserver address TTLs to 60 seconds |
| + or less. Allow earlier cached TTLs to expire before switching delegation. |
| +3. Resolve A and AAAA for each assigned server. In the nameserver domain's |
| + zone, map each of `ns1` through `ns4` to one assigned server's IPv4 and IPv6 |
| + addresses, using eight simple records. |
| +4. Replace the zone's NS values with the four branded names. Change the SOA's |
| + first field to `ns1.dns.example.` and preserve its other fields. |
| +5. At the nameserver domain's registrar, register all four names with matching |
| + IPv4 and IPv6 glue. Then delegate that domain to them. |
| +6. Verify answers and monitor traffic. Keep the previous delegation for rollback. |
| + Once stable, restore NS TTL to `172800`, SOA minimum to `900`, and address |
| + TTLs to your normal values. |
| + |
| +The complete procedure is at |
| +[https://docs.aws.amazon.com/Route53/latest/DeveloperGuide/white-label-name-servers.html](https://docs.aws.amazon.com/Route53/latest/DeveloperGuide/white-label-name-servers.html). |
| + |
| +For location-based routing, tell large public resolvers that support EDNS Client |
| +Subnet (ECS) about your branded nameservers. ECS supplies the approximate client |
| +location used for routing; white-label names may need recognition by the resolver. |
| +AWS includes this operator step in the procedure above. |
| + |
| +## Configure the console |
| + |
| +Set all six variables together. If any is empty or whitespace-only, domain |
| +buying stays off and one startup log line lists the missing variable names. |
| +When all are present, a catalog load error or backend construction failure stops |
| +startup. Error messages omit configuration values and underlying provider errors. |
| + |
| +| Variable | Value | |
| +| --- | --- | |
| +| `CARLOS_OPENPROVIDER_URL` | Production API base above, or the sandbox account's documented API base. | |
| +| `CARLOS_OPENPROVIDER_USERNAME` | Username for that Openprovider account. | |
| +| `CARLOS_OPENPROVIDER_PASSWORD` | Its password, supplied only through the console service's protected `EnvironmentFile`. | |
| +| `CARLOS_DOMAIN_DELEGATION_SET_ID` | ID of the reusable delegation set. | |
| +| `CARLOS_DOMAIN_NAMESERVERS` | Four distinct comma-separated names, for example `ns1.dns.example,ns2.dns.example,ns3.dns.example,ns4.dns.example`. Spaces around entries are accepted. | |
| +| `CARLOS_DOMAIN_CATALOG` | Absolute path to the catalog JSON file below, readable by the console. | |
| + |
| +Keep the password out of command arguments, shell history, unit-file |
| +`Environment=` entries and source control. Store it in the service's existing |
| +secret environment file, with restricted ownership and mode `0600`. Restart the |
| +console after changing its environment or catalog. |
| + |
| +The console also needs its existing billing provider and plan configuration; |
| +backend settings alone do not enable purchases. See [Plans](/docs/plans). |
| +Give the console's AWS role the Route 53 permissions its zone host uses: |
| +`CreateHostedZone`, `ListHostedZones`, `ListResourceRecordSets`, |
| +`ChangeResourceRecordSets` and `DeleteHostedZone`. Keep access scoped to the |
| +deployment wherever the action supports it. The adapter uses the existing AWS |
| +credential chain; `AWS_REGION` or `AWS_DEFAULT_REGION` selects the signing region, |
| +defaulting to `us-east-1` when neither is set. |
| + |
| +With a valid `CARLOS_STEERING_ZONE_ID` and `PLATFORM_APPS_DOMAIN`, the console |
| +copies the latency A records and health-check IDs from |
| +`edge.<PLATFORM_APPS_DOMAIN>` in that zone. It needs read access to that zone too. |
| +Without a steering hostname, bought zones use the IPv4 addresses in the existing |
| +comma-separated `PLATFORM_EDGE_IPS` setting. Configure working edge addresses |
| +before buying on a deployment without steering. |
| + |
| +## Set prices and verify |
| + |
| +Save a catalog such as this at the path in `CARLOS_DOMAIN_CATALOG`. These are |
| +example prices, not a price recommendation: |
| + |
| +```json |
| +{ |
| + "version": "2026-11-01", |
| + "daily_cap": 10, |
| + "tlds": { |
| + "com": { |
| + "register": {"eur": 1800, "gbp": 1500}, |
| + "renew": {"eur": 1900, "gbp": 1600}, |
| + "max_cost": {"currency": "eur", "minor": 1200} |
| + } |
| + } |
| +} |
| +``` |
| + |
| +Keys under `tlds` are offered suffixes without a leading dot. `register` and |
| +`renew` map lowercase three-letter currency codes to positive prices in minor |
| +units for one year: `1800` EUR means €18.00. Both maps are required. `max_cost` |
| +sets a non-negative registrar-cost ceiling in its stated currency; purchases |
| +are refused above it or when the cost currency differs. `daily_cap` limits |
| +purchases per account per UTC day; `0` disables new buying. Use a positive cap |
| +when enabling the feature. Change `version` when you change prices. The loader |
| +rejects unknown fields, invalid entries and trailing JSON. Renewal prices are |
| +required by the catalog format; automatic renewal is outside this buy-only plan. |
| + |
| +During nameserver setup, query every assigned Route 53 server's A and AAAA |
| +records and compare them with its branded name. Then query each branded server |
| +directly. Replace the example names before running: |
| + |
| +```sh |
| +dig +trace dns.example NS |
| +for ns in ns1.dns.example ns2.dns.example ns3.dns.example ns4.dns.example; do |
| + dig "$ns" A +short |
| + dig "$ns" AAAA +short |
| + dig @"$ns" dns.example NS +norecurse |
| + dig @"$ns" dns.example SOA +norecurse |
| +done |
| +``` |
| + |
| +Check the parent's referral and glue in the trace. Each direct answer must be |
| +authoritative (`aa`), name the four branded servers, and have the expected SOA. |
| +After restoring TTLs, inspect full answers to confirm NS `172800` and the SOA's |
| +last field `900`. |
| + |
| +After a sandbox purchase has completed, inspect its managed records. Here |
| +`shop.example` stands for the purchased sandbox domain: |
| + |
| +```sh |
| +dig +trace shop.example NS |
| +dig @ns1.dns.example shop.example A +norecurse |
| +dig @ns1.dns.example www.shop.example A +norecurse |
| +dig shop.example A |
| +dig www.shop.example A |
| +``` |
| + |
| +Repeat the direct queries against all four nameservers. The apex should return |
| +a configured edge address and `www` should resolve through its alias. DNS |
| +answers alone cannot prove a Route 53 health-check ID: compare the bought zone's |
| +latency record configuration with the steering zone as well. A sandbox that |
| +does not publish public delegations cannot pass the public trace; record that |
| +limit and verify the authoritative zone directly. Verify public delegation and |
| +HTTPS separately when switching on production. |
diff --git a/docs/site/nav.json b/docs/site/nav.json| index dbcbfe3fd..9380398b8 100644 |
| --- a/docs/site/nav.json |
| +++ b/docs/site/nav.json |
| @@ -38,6 +38,11 @@ |
| "label": "Plans", |
| "blurb": "Give accounts limits, packs and sponsorship. Plans stay off until you configure a catalog." |
| }, |
| + { |
| + "slug": "domains-buying", |
| + "label": "Enable domain buying", |
| + "blurb": "Configure the registrar, branded nameservers and prices for domain purchases." |
| + }, |
| { |
| "slug": "rate-limits", |
| "label": "Rate limits", |