# DNSRecord.set

URL: /business/events/DNSRecord.set · Id: `event:DNSRecord.set`

> Emitted each time a DNS Record is set.

[DNSRecord.set](/business/nouns/dns-record/set) emits `DNSRecord.set` when it completes on a [DNS Record](/business/nouns/dns-record).

| Property | Value |
| --- | --- |
| Emitted by | [DNSRecord.set](/business/nouns/dns-record/set) |
| Noun | [DNS Record](/business/nouns/dns-record) |
| Moves | [DNS Record](/business/nouns/dns-record) `drifted` to `missing`; [DNS Record](/business/nouns/dns-record) `dangling` to `missing` |
| Wakes | None. |

### Payload
Each delivery is an [Event](/business/nouns/event) record. `data` holds what [DNSRecord.set](/business/nouns/dns-record/set) returns, and `previous` holds the state it left.

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `name` | `string` | Yes | `DNSRecord.set`. |
| `at` | `datetime` | Yes | When it happened. |
| `seq` | `integer` | No | Its position in the namespace, one more than the Event before; any seq is a cursor into the history. |
| `data` | `json` | Yes | The Thing as the Action left it. |
| `data.record` | [DNS Record](/business/nouns/dns-record) | Yes | The DNS Record, with its status. |
| `data.record.type` | `string` | Yes | The record type, written in lowercase. |
| `data.record.name` | `string` | Yes | The label under the Domain, such as `@`, `www` or `_dmarc`. |
| `data.record.value` | `string` | Yes | The declared answer. |
| `data.record.owner` | `string` | Yes | `platform` records serve the Site, authenticate mail and validate certificates, and refuse edits; `startup` records change freely. |
| `data.record.observed` | `string` | No | What public DNS answered at the last daily check. |
| `data.record.status` | `string` | No | `dangling` means the target no longer answers, the opening for a subdomain takeover; `removed` means it no longer answers at all. |
| `data.previous.status` | `string` | Yes | The `status` before this Event: `drifted`. |

### Example
```json
{
  "$id": "https://api.sb/ledgerlark.com/events/event_1",
  "$type": "Event",
  "name": "DNSRecord.set",
  "at": "2026-10-22T12:00:00Z",
  "data": {
    "record": {
      "$id": "https://api.sb/ledgerlark.com/dns-records/dns_record_1",
      "$type": "DNSRecord",
      "type": "a",
      "name": "_dmarc",
      "value": "192.0.2.10",
      "owner": "platform",
      "observed": "192.0.2.10",
      "status": "missing"
    },
    "previous": {
      "status": "drifted"
    }
  },
  "seq": 1
}
```