It would be nice if we could specify a hostname in place of the MAC address argument, and for wakeonlan to attempt to look this up via nss/nsswitch/the ethers db (e.g. /etc/ethers).
Note that this would be to resolve a hostname to a MAC address, not to specify an IP for the WOL packet.
It would be nice if we could specify a hostname in place of the MAC address argument, and for
wakeonlan
to attempt to look this up via nss/nsswitch/the ethers db (e.g./etc/ethers
).Note that this would be to resolve a hostname to a MAC address, not to specify an IP for the WOL packet.
Examples
getent(1)
implies that the libc function to do this correctly isether_hostton
.