AdGuardHome/dns_test.go

12 lines
220 B
Go
Raw Normal View History

package main
import "testing"
func TestResolveRDNS(t *testing.T) {
2019-05-30 15:36:39 +03:00
config.DNS.BindHost = "1.1.1.1"
initDNSServer(".")
if r := resolveRDNS("1.1.1.1"); r != "one.one.one.one" {
t.Errorf("resolveRDNS(): %s", r)
}
}