+ DNS: Get/Set DNS general settings

GET /control/dns_info
POST /control/dns_config
This commit is contained in:
Simon Zolin
2019-11-08 14:59:12 +03:00
committed by Ildar Kamalov
parent 92141e03c4
commit 26ccee47b5
3 changed files with 99 additions and 3 deletions

View File

@@ -29,6 +29,9 @@ Contents:
* Static IP check/set
* Add a static lease
* API: Reset DHCP configuration
* DNS general settings
* API: Get DNS general settings
* API: Set DNS general settings
* DNS access settings
* List access settings
* Set access settings
@@ -801,6 +804,42 @@ Response:
]
## DNS general settings
### API: Get DNS general settings
Request:
GET /control/dns_info
Response:
200 OK
{
"protection_enabled": true | false,
"ratelimit": 1234,
"blocking_mode": "nxdomain" | "null_ip",
}
### API: Set DNS general settings
Request:
POST /control/dns_config
{
"protection_enabled": true | false,
"ratelimit": 1234,
"blocking_mode": "nxdomain" | "null_ip",
}
Response:
200 OK
## DNS access settings
There are low-level settings that can block undesired DNS requests. "Blocking" means not responding to request.