summaryrefslogtreecommitdiff
path: root/pkg/vpn/diagnose.go
blob: 5d12d4d63fee45ba9f7d641f6bebebd7bfecd28b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
package vpn

import (
	"log"
	"net"
)

func logDnsLookup(domain string) {
	addrs, err := net.LookupHost(domain)
	if err != nil {
		log.Println("ERROR cannot resolve address:", domain)
		log.Println(err)
	}

	log.Println("From here,", domain, "resolves to:")
	for _, addr := range addrs {
		log.Println(addr)
	}
}