Update /status to return currently set upstream DNS servers.
This commit is contained in:
@@ -193,6 +193,7 @@ func handleStatus(w http.ResponseWriter, r *http.Request) {
|
||||
"dns_address": config.BindHost,
|
||||
"dns_port": config.CoreDNS.Port,
|
||||
"querylog_enabled": config.CoreDNS.QueryLogEnabled,
|
||||
"upstream_dns": config.CoreDNS.UpstreamDNS,
|
||||
}
|
||||
|
||||
json, err := json.Marshal(data)
|
||||
|
||||
Reference in New Issue
Block a user