github.com/imannamdari/v2ray-core/v5@v5.0.5/transport/internet/system_dns_android_test.go (about)

     1  //go:build android
     2  // +build android
     3  
     4  package internet
     5  
     6  import (
     7  	"context"
     8  	"testing"
     9  )
    10  
    11  func TestDNSResolver(t *testing.T) {
    12  	resolver := NewDNSResolver()
    13  	if ips, err := resolver.LookupIP(context.Background(), "ip", "www.google.com"); err != nil {
    14  		t.Errorf("failed to lookupIP, %v, %v", ips, err)
    15  	}
    16  }