await domain.records.import(); // what the search found
await domain.records.import(zoneFileText); // a zone file from the old hostdomain.records.import_zone() # what the search found
domain.records.import_zone(zone_file_text) # a zone file from the old hostA zone file is the reliable path
Observation finds what answers; it cannot enumerate. A zone file holds everything, with its real values, and most hosts can export one. Without it you are copying what was visible.
What is skipped, and why
| Skipped | Because |
|---|---|
| An opaque address | It is a proxy's, not the origin's. Copying it points the domain at a service that has never heard of it. |
NS and the zone's authority records | They would delegate back to the host being left. |
The opaque ones stay listed in migration().opaque — to finish by hand, or with a zone file.
Returns
{ added: 15, parsed: 23, skipped: [{ type, name, reason }] }{"added": 15, "parsed": 23, "skipped": [{"type": ..., "name": ..., "reason": ...}]}Read skipped: it is the list of what is still missing, and each entry says why.
Records are created, one by one
Each one goes through the ordinary path, and the result is reported per record. A record that did not land is named rather than lost in a batch result — run the import again, or write the missing one.
Verify before advising a switch
await domain.records.import();
const plan = await domain.migration();
if (plan.safeToSwitch) { /* now the registrar can be pointed here */ }domain.records.import_zone()
plan = domain.migration()
if plan["safeToSwitch"]:
pass # now the registrar can be pointed here