+ clients: find DNS client's hostname by IP using rDNS

This commit is contained in:
Simon Zolin
2019-05-21 14:53:13 +03:00
parent c038e4cf14
commit a12f01793f
3 changed files with 144 additions and 0 deletions

9
dns_test.go Normal file
View 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)
}
}