-Zones in the API
-================
-
-Zone
-----
-
-A Zone object represents an authoritative DNS Zone.
-
-A Resource Record Set (below as "RRset") are all records for a given name and type.
-
-Comments are per-RRset.
-
-.. json:object:: Zone
-
- Represents a configured zone in the PowerDNS server.
-
- :property string id: Opaque zone id (string), assigned by the Server. Do not interpret. Guaranteed to be safe for embedding in URLs.
- :property string name: Name of the zone (e.g. "example.com.") **must** have a trailing dot
- :property string type: Set to "Zone"
- :property string url: API endpoint for this zone
- :property string kind: Zone kind, one of "Native", "Master", "Slave" on the Authoritative Server. One of "Native", "Forwarded" on the Recursor.
- :property [RRSet] rrsets: RRSets in this zone
-
- .. include:: ../../http-api/zone-properties.rst
-
RRSet
-----
exclude_patterns = ['_build', 'Thumbs.db', '.DS_Store',
'.venv',
'security-advisories/security-policy.rst',
- 'common/secpoll.rst']
+ 'common/secpoll.rst',
+ 'common/api/zone.rst']
# The name of the Pygments (syntax highlighting) style to use.
pygments_style = 'sphinx'
../common/api/dataformat
../common/api/server
- ../common/api/zone
+ zone
../common/api/configsetting
../common/api/statisticitem
cryptokeyitem
-
+Zones
+=====
+
+Zone
+----
+
+A Zone object represents an authoritative DNS Zone.
+
+A Resource Record Set (below as "RRset") are all records for a given name and type.
+
+Comments are per-RRset.
+
+.. json:object:: Zone
+
+ Represents a configured zone in the PowerDNS server.
+
+ :property string id: Opaque zone id (string), assigned by the server, should not be interpreted by the application. Guaranteed to be safe for embedding in URLs.
+ :property string name: Name of the zone (e.g. "example.com.") MUST have a trailing dot
+ :property string type: Set to "Zone"
+ :property string url: API endpoint for this zone
+ :property string kind: Zone kind, one of "Native", "Master", "Slave"
+ :property [RRSet] rrsets: RRSets in this zone
:property integer serial: The SOA serial number
:property integer notified_serial: The SOA serial notifications have been sent out for
:property [str] masters: List of IP addresses configured as a master for this zone ("Slave" type zones only)
:property bool presigned: Whether or not the zone is pre-signed (not implemented)
:property string soa_edit: The :ref:`metadata-soa-edit` metadata item
:property string soa_edit_api: The :ref:`metadata-soa-edit-api` metadata item
- :property string zone: May contain a BIND-style zone file when creating a zone
+ :property string zone: MAY contain a BIND-style zone file when creating a zone
:property str account: MAY be set. Its value is defined by local policy
:property [str] nameservers: MAY be sent in client bodies during creation, and MUST NOT be sent by the server. Simple list of strings of nameserver names, including the trailing dot. Not required for slave zones.
When creating a slave zone, it is recommended to not set any of
``nameservers``, ``records`` or ``zone``.
+
+.. include:: ../common/api/zone.rst
'http-api/override.rst',
'common/zonemetadata.rst',
'common/endpoint-servers-config.rst',
- 'common/secpoll.rst']
+ 'common/secpoll.rst',
+ 'common/api/zone.rst']
# The name of the Pygments (syntax highlighting) style to use.
pygments_style = 'sphinx'
../common/api/dataformat
../common/api/server
- ../common/api/zone
+ zone
../common/api/configsetting
../common/api/statisticitem
+++ /dev/null
-The Zone object in the Recursor also supportes these elements:
-
-:property [str] servers: For zones of type "Forwarded", addresses to send the queries to
-:property bool recursion_desired: For zones of type "Forwarded", Whether or not the RD bit should be set in the query
--- /dev/null
+Zones
+=====
+
+Zone
+----
+
+A Zone object represents an authoritative DNS Zone.
+
+A Resource Record Set (below as "RRset") are all records for a given name and type.
+
+Comments are per-RRset.
+
+.. json:object:: Zone
+
+ Represents a configured zone in the PowerDNS server.
+
+ :property string id: Opaque zone id (string), assigned by the server, should not be interpreted by the application. Guaranteed to be safe for embedding in URLs.
+ :property string name: Name of the zone (e.g. "example.com.") MUST have a trailing dot
+ :property string type: Set to "Zone"
+ :property string url: API endpoint for this zone
+ :property string kind: Zone kind, one of "Native", "Forwarded".
+ :property [RRSet] rrsets: RRSets in this zone
+ :property [str] servers: For zones of type "Forwarded", addresses to send the queries to
+ :property bool recursion_desired: For zones of type "Forwarded", Whether or not the RD bit should be set in the query
+
+.. include:: ../common/api/zone.rst