mirror of
https://github.com/luscis/openlan.git
synced 2025-10-05 08:36:59 +08:00
15 lines
234 B
Go
Executable File
15 lines
234 B
Go
Executable File
package cswitch
|
|
|
|
import (
|
|
"fmt"
|
|
"net"
|
|
"testing"
|
|
)
|
|
|
|
func TestDNS_lookup(t *testing.T) {
|
|
addr, err := net.LookupHost("nj.openlan.net")
|
|
fmt.Println(addr, err)
|
|
addr, err = net.LookupHost("114.221.197.118")
|
|
fmt.Println(addr, err)
|
|
}
|