Merge pull request #1662 from weaveworks/issues/1571-upstream-dns-report

DNS upstream servers report
This commit is contained in:
Adam Harrison committed 2015-11-25 16:47:14 +00:00
commit 8a4f038ec4
3 files changed
+15 -4

No files matched your search

+6 -4
View File
@@ -1,10 +1,11 @@
package nameserver
type Status struct {
Domain string
Address string
TTL uint32
Entries []EntryStatus
Domain string
Upstream []string
Address string
TTL uint32
Entries []EntryStatus
}
type EntryStatus struct {
@@ -37,6 +38,7 @@ func NewStatus(ns *Nameserver, dnsServer *DNSServer) *Status {
return &Status{
dnsServer.domain,
dnsServer.upstream.Servers,
dnsServer.address,
dnsServer.ttl,
entryStatusSlice}