dns
import "github.com/TheManticoreProject/Manticore/network/dns"
Index
func DNSLookup
func DNSLookup(hostname string, dnsServer string) []string
DNSLookup performs a DNS lookup of a hostname (FQDN or hostname) to a specified DNS server.
Parameters: - hostname: A string representing the hostname or FQDN to be resolved. - dnsServer: A string representing the DNS server to use for the lookup.
Returns: - A slice of strings containing the IP addresses of the DNS server.