Skip to content

CodeBeast357/WakeByName

Repository files navigation

WakeByName

Build status Coverage Status

Overview

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.

Background

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.

Features

  • 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

About

Wake-on-LAN by DNS lookup

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published