dns

package
v1.0.8 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 12, 2025 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

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.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL