2021-05-08 02:39:26 +08:00
|
|
|
---
|
|
|
|
name: SOA
|
|
|
|
parameters:
|
|
|
|
- name
|
|
|
|
- ns
|
|
|
|
- mbox
|
|
|
|
- refresh
|
|
|
|
- retry
|
|
|
|
- expire
|
|
|
|
- minttl
|
|
|
|
- modifiers...
|
2023-01-13 05:59:42 +08:00
|
|
|
parameter_types:
|
|
|
|
name: string
|
|
|
|
ns: string
|
|
|
|
mbox: string
|
|
|
|
refresh: number
|
|
|
|
retry: number
|
|
|
|
expire: number
|
|
|
|
minttl: number
|
|
|
|
"modifiers...": RecordModifier[]
|
2021-05-08 02:39:26 +08:00
|
|
|
---
|
|
|
|
|
|
|
|
`SOA` adds an `SOA` record to a domain. The name should be `@`. ns and mbox are strings. The other fields are unsigned 32-bit ints.
|
|
|
|
|
2022-03-04 20:49:03 +08:00
|
|
|
{% capture example %}
|
2022-02-18 01:22:31 +08:00
|
|
|
```js
|
2021-05-08 02:39:26 +08:00
|
|
|
D("example.com", REG_THIRDPARTY, DnsProvider("DNS_BIND"),
|
|
|
|
SOA("@", "ns3.example.org.", "hostmaster.example.org.", 3600, 600, 604800, 1440),
|
|
|
|
);
|
2022-02-18 01:22:31 +08:00
|
|
|
```
|
2022-03-04 20:49:03 +08:00
|
|
|
{% endcapture %}
|
2021-05-08 02:39:26 +08:00
|
|
|
|
2022-03-04 20:49:03 +08:00
|
|
|
{% include example.html content=example %}
|
2021-05-08 02:39:26 +08:00
|
|
|
|
|
|
|
## Notes:
|
|
|
|
|
|
|
|
* The serial number is managed automatically. It isn't even a field in `SOA()`.
|
|
|
|
* Most providers automatically generate SOA records. They will ignore any `SOA()` statements.
|
2021-05-21 23:35:43 +08:00
|
|
|
|
|
|
|
There is more info about SOA in the documentation for the [BIND provider]({{site.github.url}}/providers/bind).
|