103 lines
No EOL
2.8 KiB
JSON
103 lines
No EOL
2.8 KiB
JSON
{
|
|
"client_requirement": "client_is_administrator+",
|
|
"items": [
|
|
{
|
|
"type": "header_page_title",
|
|
"items": [
|
|
{
|
|
"type": "h1",
|
|
"text": "DNS Server"
|
|
},
|
|
{
|
|
"type": "p",
|
|
"text": "Upstream resolvers and forwarding DNS service settings."
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"type": "card",
|
|
"label": "Upstream DNS",
|
|
"client_requirement": "client_is_administrator+",
|
|
"items": [
|
|
{
|
|
"type": "form",
|
|
"action": "/action/dnsserver/upstreamdns_save",
|
|
"method": "post",
|
|
"items": [
|
|
{
|
|
"type": "editable_list",
|
|
"label": "DNS Providers",
|
|
"name": "upstream_servers",
|
|
"item_placeholder": "e.g. 1.1.1.1",
|
|
"add_label": "Add Provider",
|
|
"validate": "ipv4",
|
|
"hint": "DNS resolvers queried for external hostnames. Supports IPv4 and IPv6.",
|
|
"items": "%DNS_UPSTREAM_SERVERS_JSON%"
|
|
},
|
|
{
|
|
"type": "field",
|
|
"label": "Strict Order",
|
|
"name": "strict_order",
|
|
"input_type": "checkbox",
|
|
"value": "%DNS_STRICT_ORDER%",
|
|
"hint": "Query DNS providers in list order rather than in parallel."
|
|
},
|
|
{
|
|
"type": "button_row",
|
|
"items": [
|
|
{
|
|
"type": "button_primary",
|
|
"action": "/action/dnsserver/upstreamdns_save",
|
|
"method": "post",
|
|
"text": "Save"
|
|
},
|
|
{
|
|
"type": "button_cancel",
|
|
"text": "Cancel"
|
|
}
|
|
]
|
|
}
|
|
]
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"type": "card",
|
|
"label": "DNS Forwarding",
|
|
"client_requirement": "client_is_administrator+",
|
|
"items": [
|
|
{
|
|
"type": "form",
|
|
"action": "/action/dnsserver/dnsforwarding_save",
|
|
"method": "post",
|
|
"items": [
|
|
{
|
|
"type": "field",
|
|
"label": "Cache Size",
|
|
"name": "cache_size",
|
|
"input_type": "number",
|
|
"value": "%DNS_CACHE_SIZE%",
|
|
"min": 0,
|
|
"hint": "Max DNS responses to cache per instance. Set to 0 to disable caching."
|
|
},
|
|
{
|
|
"type": "button_row",
|
|
"items": [
|
|
{
|
|
"type": "button_primary",
|
|
"action": "/action/dnsserver/dnsforwarding_save",
|
|
"method": "post",
|
|
"text": "Save"
|
|
},
|
|
{
|
|
"type": "button_cancel",
|
|
"text": "Cancel"
|
|
}
|
|
]
|
|
}
|
|
]
|
|
}
|
|
]
|
|
}
|
|
]
|
|
} |