2019-05-21 11:53:13 +00:00
|
|
|
package main
|
|
|
|
|
|
|
|
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 := resolveRDNS("1.1.1.1"); r != "one.one.one.one" {
|
2019-05-21 11:53:13 +00:00
|
|
|
t.Errorf("resolveRDNS(): %s", r)
|
|
|
|
}
|
|
|
|
}
|