+ clients: find DNS client's hostname by IP using rDNS
This commit is contained in:
9
dns_test.go
Normal file
9
dns_test.go
Normal file
@@ -0,0 +1,9 @@
|
||||
package main
|
||||
|
||||
import "testing"
|
||||
|
||||
func TestResolveRDNS(t *testing.T) {
|
||||
if r := resolveRDNS("1.1.1.1", "1.1.1.1"); r != "one.one.one.one" {
|
||||
t.Errorf("resolveRDNS(): %s", r)
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user