jpoliv / wakeonlan

Perl script for waking up computers via Wake-On-LAN magic packets
303 stars 32 forks source link

Unable to use DNS name for ip_address argument #9

Open TheDarkLordo opened 2 years ago

TheDarkLordo commented 2 years ago

In 0.42 version of wakeonlan, when trying to input my DNS name as the ip_address argument, it returns :

Invalid default IP address: (name of my DNS address). With the same parameters on wakeonlan 0.41, it works like a charm instead. What changed? It seems that now ip_address argument only accepts digits.

Schermata 2022-04-23 alle 00 55
skol101 commented 1 year ago

Same here. I'm using my dev machine behind the cloudflare tunnel. I can connect to it just fine by using domain name setup in the tunnel, but wakeonlan gives me the same error .

Using IP address works fine

LazerJesus commented 1 year ago

anyone figure out how to use wakeonlan with an url?

aymane-eljerari commented 10 months ago

As mentioned here, you can convert from the domain name to the IP address by running

nslookup example.com

Then use the IP address as an argument to the wakeonlan command.