2019-06-10 08:33:19 +00:00
|
|
|
package home
|
2019-05-21 11:53:13 +00:00
|
|
|
|
2019-06-04 17:38:53 +00:00
|
|
|
import (
|
|
|
|
"testing"
|
|
|
|
)
|
2019-05-21 11:53:13 +00:00
|
|
|
|
|
|
|
func TestResolveRDNS(t *testing.T) {
|
2019-05-30 12:36:39 +00:00
|
|
|
config.DNS.BindHost = "1.1.1.1"
|
2019-10-02 13:53:23 +00:00
|
|
|
initDNSServer()
|
2019-09-18 15:44:27 +00:00
|
|
|
if r := config.dnsctx.rdns.resolve("1.1.1.1"); r != "one.one.one.one" {
|
2019-05-21 11:53:13 +00:00
|
|
|
t.Errorf("resolveRDNS(): %s", r)
|
|
|
|
}
|
|
|
|
}
|