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