func discoverNetwork() (netInfo, error) {
	var result netInfo

	var err error
	result.IPAddresses, err = discoverNetworkAddresses()
	if err != nil {
		return result, err
	}

	for _, ip := range result.IPAddresses {
		records, _ := net.LookupAddr(ip)
		result.DNSNames = append(result.DNSNames, records...)
	}
	return result, nil
}
// Attempts to discover all the external ips and dns names associated with the current host.
Attempts to discover all the external ips and dns names associated with the current host.
// Attempts to discover all the external ips and dns names associated with the current host .
func discoverNetwork() (netInfo, error) {
	var result netInfo
	var err error
	result.IPAddresses, err = discoverNetworkAddresses()
	if err != nil {
		return result, err
	}
	for _, ip := range result.IPAddresses {
		records, _ := net.LookupAddr(ip)
		result.DNSNames = append(result.DNSNames, records...)
	}
	return result, nil
}
func discoverNetwork ( ) ( netInfo , error ) { var result netInfo var err error result . IPAddresses , err = discoverNetworkAddresses ( ) if err != nil { return result , err } for _ , ip := range result . IPAddresses { records , _ := net . LookupAddr ( ip ) result . DNSNames = append ( result . DNSNames , records ... ) } return result , nil }
Attempts to discover all the external ips and dns names associated with the current host.
Attempts to discover all the external ips and dns names associated with the current host .