mirror of
https://github.com/weaveworks/scope.git
synced 2026-03-05 11:11:13 +00:00
- Run the Weave integrations regardless of if weave is detected. - Make everything backoff and not spam the logs. - Add miekg dns to vendor. - Have the app periodically register with weaveDNS, and the probe do lookups there. - Decide what the local networks are at runtime, not once at startup. - Correctly resolve app ids, fixes #825
20 lines
385 B
Go
20 lines
385 B
Go
package dns
|
|
|
|
import "testing"
|
|
|
|
const LinodeAddr = "176.58.119.54:53"
|
|
|
|
func TestClientRemote(t *testing.T) {
|
|
m := new(Msg)
|
|
m.SetQuestion("go.dns.miek.nl.", TypeTXT)
|
|
|
|
c := new(Client)
|
|
r, _, err := c.Exchange(m, LinodeAddr)
|
|
if err != nil {
|
|
t.Errorf("failed to exchange: %v", err)
|
|
}
|
|
if r != nil && r.Rcode != RcodeSuccess {
|
|
t.Errorf("failed to get an valid answer\n%v", r)
|
|
}
|
|
}
|