mirror of
https://github.com/fergalmoran/DnsServer.git
synced 2025-12-22 09:29:50 +00:00
updated api docs.
This commit is contained in:
19
APIDOCS.md
19
APIDOCS.md
@@ -151,7 +151,7 @@ RESPONSE:
|
||||
```
|
||||
{
|
||||
"response": {
|
||||
"version": "7.2",
|
||||
"version": "8.0",
|
||||
"dnsServerDomain": "server1",
|
||||
"dnsServerLocalEndPoints": [
|
||||
"0.0.0.0:53",
|
||||
@@ -183,6 +183,7 @@ RESPONSE:
|
||||
"defaultRecordTtl": 3600,
|
||||
"preferIPv6": false,
|
||||
"udpPayloadSize": 1232,
|
||||
"dnssecValidation": false,
|
||||
"enableLogging": true,
|
||||
"logQueries": true,
|
||||
"useLocalTime": false,
|
||||
@@ -273,6 +274,7 @@ WHERE:
|
||||
- `defaultRecordTtl` (optional): The default TTL value to use if not specified when adding or updating records in a Zone.
|
||||
- `preferIPv6` (optional): DNS Server will use IPv6 for querying whenever possible with this option enabled. Default value is `false`.
|
||||
- `udpPayloadSize` (optional): The maximum EDNS UDP payload size that can be used to avoid IP fragmentation. Valid range is 512-4096 bytes. Default value is `1232`.
|
||||
- `dnssecValidation` (optional): Set this to `true` to enable DNSSEC validation. DNS Server will validate all responses from name servers or forwarders when this option is enabled.
|
||||
- `enableLogging` (optional): Enable this option to log error and audit logs into the log file. Default value is `true`.
|
||||
- `logQueries` (optional): Enable this option to log every query received by this DNS Server and the corresponding response answers into the log file. Default value is `false`.
|
||||
- `useLocalTime` (optional): Enable this option to use local time instead of UTC for logging. Default value is `false`.
|
||||
@@ -1838,8 +1840,14 @@ WHERE:
|
||||
- `primaryNameServerAddresses` (optional): List of comma separated IP addresses of the primary name server. This optional parameter is used only with Secondary and Stub zones. If this parameter is not used, the DNS server will try to recursively resolve the primary name server addresses automatically.
|
||||
- `zoneTransferProtocol` (optional): The zone transfer protocol to be used by secondary zones. Valid values are [`tcp`, `tls`].
|
||||
- `tsigKeyName` (optional): The TSIG key name to be used by secondary zones.
|
||||
- `protocol` (optional): The DNS transport protocol to be used by the conditional forwarder zone. This optional parameter is used with Conditional Forwarder zones. Valid values are [`Udp`, `Tcp`, `Tls`, `Https`]. Default UDP protocol is used when this parameter is missing.
|
||||
- `forwarder` (optional): The address of the DNS server to be used as a forwarder. This optional parameter is requred to be used with Conditional Forwarder zones. A special value `this-server` can be used as a forwarder which when used will forward all the requests internally to this DNS server such that you can override the zone with records and rest of the zone gets resolved via This Server.
|
||||
- `protocol` (optional): The DNS transport protocol to be used by the conditional forwarder zone. This optional parameter is used with Conditional Forwarder zones. Valid values are [`Udp`, `Tcp`, `Tls`, `Https`]. Default `Udp` protocol is used when this parameter is missing.
|
||||
- `forwarder` (optional): The address of the DNS server to be used as a forwarder. This optional parameter is required to be used with Conditional Forwarder zones. A special value `this-server` can be used as a forwarder which when used will forward all the requests internally to this DNS server such that you can override the zone with records and rest of the zone gets resolved via This Server.
|
||||
- `dnssecValidation` (optional): Set this boolean value to indicate if DNSSEC validation must be done. This optional parameter is required to be used with Conditional Forwarder zones.
|
||||
- `proxyType` (optional): The type of proxy that must be used for conditional forwarding. This optional parameter is required to be used with Conditional Forwarder zones. Valid values are [`None`, `Http`, `Socks5`]. Default value `None` is used when this parameter is missing.
|
||||
- `proxyAddress` (optional): The proxy server address to use when `proxyType` is configured. This optional parameter is required to be used with Conditional Forwarder zones.
|
||||
- `proxyPort` (optional): The proxy server port to use when `proxyType` is configured. This optional parameter is required to be used with Conditional Forwarder zones.
|
||||
- `proxyUsername` (optional): The proxy server username to use when `proxyType` is configured. This optional parameter is required to be used with Conditional Forwarder zones.
|
||||
- `proxyPassword` (optional): The proxy server password to use when `proxyType` is configured. This optional parameter is required to be used with Conditional Forwarder zones.
|
||||
|
||||
RESPONSE:
|
||||
```
|
||||
@@ -1976,6 +1984,7 @@ URL:
|
||||
WHERE:
|
||||
- `token`: The session token generated by the `login` call.
|
||||
- `domain`: The domain name of the zone to add record.
|
||||
- `zone` (optional): The name of the authoritative zone into which the `domain` exists. When unspecified, the closest authoritative zone will be used.
|
||||
- `type`: The DNS resource record type. Supported record types are [`A`, `AAAA`, `MX`, `TXT`, `NS`, `PTR`, `CNAME`, `SRV`, `CAA`] and proprietory types [`ANAME`, `FWD`, `APP`].
|
||||
- `value`: The value for the resource record. This parameter is shared among different types of resource records and thus will mean different values as per the type of record. Example, for type A and AAAA record, the value will be an IP address while for type MX, the value will be the exchange domain name and for type TXT the value will be the text data. The `APP` record uses this value as the app name.
|
||||
- `ttl`: The DNS resource record TTL value. This is the value in seconds that the DNS resolvers can cache the record for.
|
||||
@@ -2010,6 +2019,7 @@ URL:
|
||||
WHERE:
|
||||
- `token`: The session token generated by the `login` call.
|
||||
- `domain`: The domain name of the zone to get records.
|
||||
- `zone` (optional): The name of the authoritative zone into which the `domain` exists. When unspecified, the closest authoritative zone will be used.
|
||||
|
||||
RESPONSE:
|
||||
```
|
||||
@@ -2117,6 +2127,7 @@ URL:
|
||||
WHERE:
|
||||
- `token`: The session token generated by the `login` call.
|
||||
- `domain`: The domain name of the zone to delete the record.
|
||||
- `zone` (optional): The name of the authoritative zone into which the `domain` exists. When unspecified, the closest authoritative zone will be used.
|
||||
- `type`: The type of the resource record to delete.
|
||||
- `value`: The value in the record to delete. This is the same value that was read in the Get Record call.
|
||||
- `port` (optional): This is the port parameter in the SRV record. This parameter is required when deleting the SRV record.
|
||||
@@ -2142,6 +2153,7 @@ URL:
|
||||
WHERE:
|
||||
- `token`: The session token generated by the `login` call.
|
||||
- `domain`: The domain name of the zone to update the record.
|
||||
- `zone` (optional): The name of the authoritative zone into which the `domain` exists. When unspecified, the closest authoritative zone will be used.
|
||||
- `type`: The type of the resource record to update.
|
||||
- `newDomain` (optional): The new domain name to be set for the record. To be used to rename sub domain name of the record.
|
||||
- `ttl` (optional): The TTL value of the resource record. Default value of `3600` is used when parameter is missing.
|
||||
@@ -2458,6 +2470,7 @@ WHERE:
|
||||
- `domain`: The domain name to query.
|
||||
- `type`: The type of the query.
|
||||
- `protocol` (optional): The DNS transport protocol to be used to query. Valid values are [`Udp`, `Tcp`, `Tls`, `Https`]. The default value of `Udp` is used when the parameter is missing.
|
||||
- `dnssec` (optional): Set to `true` to enable DNSSEC validation.
|
||||
- `import` (optional): This parameter when set to `true` indicates that the response of the DNS query should be imported in the an authoritative zone on this DNS server. Default value is `false` when this parameter is missing. If a zone does not exists, a primary zone for the `domain` name is created and the records from the response are set into the zone. Import can be done only for primary and forwarder type of zones. When `type` is set to AXFR, then the import feature will work as if a zone transfer was requested and the complete zone will be updated as per the zone transfer response. Note that any existing record type for the given `type` will be overwritten when syncing the records. It is recommended to use `recursive-resolver` or the actual name server address for the `server` parameter when importing records.
|
||||
|
||||
RESPONSE:
|
||||
|
||||
Reference in New Issue
Block a user