2021-05-07 14:39:26 -04:00
|
|
|
---
|
|
|
|
name: SOA
|
|
|
|
parameters:
|
|
|
|
- name
|
|
|
|
- ns
|
|
|
|
- mbox
|
|
|
|
- refresh
|
|
|
|
- retry
|
|
|
|
- expire
|
|
|
|
- minttl
|
|
|
|
- modifiers...
|
2023-01-12 16:59:42 -05:00
|
|
|
parameter_types:
|
|
|
|
name: string
|
|
|
|
ns: string
|
|
|
|
mbox: string
|
|
|
|
refresh: number
|
|
|
|
retry: number
|
|
|
|
expire: number
|
|
|
|
minttl: number
|
|
|
|
"modifiers...": RecordModifier[]
|
2021-05-07 14:39:26 -04: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.
|
|
|
|
|
2023-03-13 21:30:21 +01:00
|
|
|
{% code title="dnsconfig.js" %}
|
2023-01-20 13:56:20 +01:00
|
|
|
```javascript
|
2023-06-18 05:35:13 +02:00
|
|
|
D("example.com", REG_MY_PROVIDER, DnsProvider(DSP_MY_PROVIDER),
|
2023-06-17 14:58:17 +02:00
|
|
|
SOA("@", "ns3.example.com.", "hostmaster@example.com", 3600, 600, 604800, 1440),
|
2021-05-07 14:39:26 -04:00
|
|
|
);
|
2022-02-17 18:22:31 +01:00
|
|
|
```
|
2023-03-13 21:30:21 +01:00
|
|
|
{% endcode %}
|
2021-05-07 14:39:26 -04:00
|
|
|
|
2023-03-16 23:14:47 -04:00
|
|
|
If you accidentally include an `@` in the email field DNSControl will quietly
|
|
|
|
change it to a `.`. This way you can specify a human-readable email address
|
|
|
|
when you are making it easier for spammers how to find you.
|
2021-05-07 14:39:26 -04:00
|
|
|
|
2023-02-07 19:55:41 +05:30
|
|
|
## Notes
|
2021-05-07 14:39:26 -04:00
|
|
|
* 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.
|
2023-03-16 23:14:47 -04:00
|
|
|
* The mbox field should not be set to a real email address unless you love spam and hate your privacy.
|
2021-05-21 11:35:43 -04:00
|
|
|
|
2023-03-15 23:43:57 +01:00
|
|
|
There is more info about `SOA` in the documentation for the [BIND provider](../../providers/bind.md).
|