mirror of
https://github.com/StackExchange/dnscontrol.git
synced 2025-11-07 06:55:56 +08:00
796 B
796 B
| name | parameters | ||||||||
|---|---|---|---|---|---|---|---|---|---|
| SOA |
|
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.
{% include startExample.html %} {% highlight js %}
D("example.com", REG_THIRDPARTY, DnsProvider("DNS_BIND"), SOA("@", "ns3.example.org.", "hostmaster.example.org.", 3600, 600, 604800, 1440), );
{%endhighlight%} {% include endExample.html %}
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.
There is more info about SOA in the documentation for the BIND provider.