Documentation
¶
Rendered for darwin/amd64
Overview ¶
Package dhcp parses macOS dhcpd_leases file to discover VM IP addresses.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func LookupByHostname ¶
LookupByHostname returns the IP address for the given hostname. Returns the first match (file order = newest first in macOS dhcpd_leases).
Types ¶
type Lease ¶
Lease represents a DHCP lease entry.
func ParseLeases ¶
ParseLeases reads and parses /var/db/dhcpd_leases.
func ParseLeasesData ¶
ParseLeasesData parses dhcpd_leases content.
func ParseLeasesFile ¶
ParseLeasesFile parses a dhcpd_leases file from the given path.
Click to show internal directories.
Click to hide internal directories.