This command line tool elevates the operation Wake-on-LAN using the usual network resolution protocols. It first resolves a list of domain names from DNS lookups. Each resulting IP address is translated to a MAC address by the ARP. Once it has the MAC address, it builds up the magic packet and sends it on an UDP broadcast or multicast socket.
The Wake-On-LAN mechanism uses the provided MAC address to compile and send a magic packet to trigger a NIC to power up.
The MAC address is usually unique and assigned by the manufacturer of the NIC. This situation is not always the case, as one could have a custom address.
By elevating the Wake-on-LAN mechanism with higher OSI level protocols, this tool abstracts away the complexity of maintaining the usability of the base mechanism.
getopt
-style arguments- List of domain names to trigger
n
: List of DNS servers to request (default: host NIC servers)p
: Port number (default: 7)s
: Flag for subnet range limitation