# Registrar DNS quirks (verified)

Per-registrar operational notes for the DNS-panel step of go-live. Extend this file
when a registrar reveals new behavior — never a per-incident file. Dynadot, Njalla
and MonstaDomains sections below.

## MonstaDomains (labs.monstadomains.com) — backend Key-Systems/rrpproxy

- **Authoritative servers:** the "default" delegation serves from `ns1.rrpproxy.net`
  (plus monstadns.com aliases). Check records with `dig +short A <domain> @ns1.rrpproxy.net`.
- **Full-form rule:** the DNS manager form only saves complete payloads — hidden
  `token`, `sub=save`, `domainid`, one `dnsrecid[]`+`dnsrecordhost[]`+`dnsrecordtype[]`+
  `dnsrecordaddress[]`+`dnsrecordpriority[]` row per record, existing rows included
  UNCHANGED. Minimal POSTs return HTTP 200 and get silently cleaned up later.
  Consequence: always re-submit the existing rows (e.g. `www`) together with the
  new apex row, or the existing records are lost.
- **Panel NS changes do not reliably reach the registry:** "Use Custom Nameservers"
  saves show "Changes Saved Successfully" but RDAP shows the delegation unchanged
  for hours. Ground truth: `curl -s https://rdap.verisign.com/com/v1/domain/<domain>`
  (fields: nameservers, events → "last changed"). If it never lands, open a support
  ticket (submitticket.php needs the SAME full-form treatment — FormData of the whole
  form, else the ticket is silently not created and "My Support Tickets" stays empty).
- **Terminal automation works:** WHMCS login via urllib is fine — GET `/login.php`,
  extract `name="token"`, POST token+username+password to `/dologin.php`, then carry
  the session cookie for panel POSTs. No captcha on login. Plain `.value` assignment
  in browser JS is sufficient (no native-setter trick needed for these PHP forms).
- **Lost panel password → reset via the panel's forgot-flow, not credential guessing:**
  the account's mailbox is a mail.tm address, so the reset link lands there and is
  readable via the mail.tm API within ~a minute. Click "Forgot password", enter the
  account mail, fetch `https://api.mail.tm/messages` (login with the stored mail.tm
  password), open the redeem link, set a new password, store it in the secrets file
  immediately. Reset mails can lag a couple of minutes — poll the inbox several
  times before concluding the flow is broken. The mailbox password and the panel
  password are DIFFERENT secrets — a correct mail.tm login says nothing about the
  panel password.

## Dynadot (www.dynadot.com)

- **RESTful v2 DNS-PUT fails on domains with Email-Forward/MX settings** (error
  "Please set MX…"), and api3.json `set_dns2` rejects plausible parameter names
  ("no record type for subdomain0") — on such domains do NOT fight the API; use the
  browser panel. `get_dns`/`get_zone_records` stay readable via API for verification.
- **Working browser path:** homepage → nav "Login" button opens a modal → fill the
  Username input (name matches `dyna-id-*`) + password via JS (set `.value`, then
  dispatch `input`+`change`), click the "Sign In" button → domain list at
  `/account/domain/name/list.html` → per-domain page `/account/domain/name/edit.html?domain_id=<id>`
  (direct guesses like `/account/domain/dns/<domain>` 404) → in the Settings section
  the DNS row ("Dynadot DNS: <IP>") opens the record editor via its chevron
  (`.fa-chevron-right`), NOT by clicking the value text → fill the Domain-Record A
  field → "Save Settings" → confirm the row now shows the new IP. Changing the A
  record this way leaves MX/Email-Forward settings untouched.
- **Off-screen elements break coordinate clicks:** rows below the fold have viewport
  coordinates outside the window; `click_at_xy` then hits the wrong element. Scroll
  into view first or click via JS `.click()` on the resolved element.
- **www is a SEPARATE "Subdomain Record", not part of the apex "Domain Record":**
  changing the apex A field leaves www alone (or without any record at all, if the
  domain only ever had an apex entry). Under "2. Subdomain Records" click that
  section's "Add Record" — note there are TWO Add Record buttons on the page (one
  per section); pick the one inside the subdomain section. The new row renders
  multiple times (Vue) — locate its inputs by `placeholder="www"` and
  `placeholder="https://example.example.com"` on the row's IDs, not by fixed
  dyna-id numbers (they change on every re-render).
- **Record-row Vue inputs need the NATIVE value setter, and type BEFORE value:**
  plain `.value` assignment survives on the login modal but gets silently wiped on
  the DNS record rows (Vue re-renders on the type-select click). Order that works:
  1) click the row's `.record-type .dyna-selectV2__wrapper` to open the custom
  dropdown, click the option whose text is exactly `A`; 2) set subdomain +
  destination via `Object.getOwnPropertyDescriptor(Object.getPrototypeOf(inp),
  'value').set.call(inp, val)` + `input`/`change` events; 3) click "Save Settings"
  immediately with no other DOM interaction in between. Verify the values right
  before saving (read the input `.value` back) — an empty destination can be saved
  without any error. Remove accidentally-added extra rows via the row's trash
  button before saving.
- **Dynadot login sessions expire MID-FLOW:** navigating to an account page then
  bounces to `/?signin_done=<original-url>`. Re-open the Login modal from the
  homepage nav button, sign in with the stored credentials (GALAKTIKUS-ZUGAENGE.md),
  and the browser returns to the original page — do not re-navigate manually.
- **Propagation:** record TTL is short (~5 min), but the VPS's own stub resolver
  (systemd-resolved) keeps the old A record AND caches NXDOMAIN for a newly added
  record longer than public resolvers — `sudo resolvectl flush-caches` clears it;
  verify public truth with `dig +short A <domain> @1.1.1.1`, and test the vhost
  before propagation with `curl --resolve <domain>:443:<IP>` rather than trusting
  local DNS.

- **Bare-domain vs www certificates are separate** — one can issue while the other
  is blocked; test both URLs independently after any DNS repair.
- **Public-resolver negative cache** (dns.google/Cloudflare up to SOA minimum, in
  practice ~30 min–8 h) can keep "no valid A records" errors alive long after the
  authoritative server serves the record — tls-alpn-01 validation can still succeed
  because the CA connects to the IP directly once ANY resolver it uses resolves it.
