badguardhome/home/dns_test.go

14 lines
237 B
Go
Raw Normal View History

package home
2019-06-04 17:38:53 +00:00
import (
"testing"
)
func TestResolveRDNS(t *testing.T) {
2019-05-30 12:36:39 +00:00
config.DNS.BindHost = "1.1.1.1"
initDNSServer()
if r := config.dnsctx.rdns.resolve("1.1.1.1"); r != "one.one.one.one" {
t.Errorf("resolveRDNS(): %s", r)
}
}