I need to download a file when my computer boots up, so I created this line in my cronjob:
@reboot wget -a /log/here -O /save/here https://domain.tld/file.ext
Unfortunately, it creates a blank file at
/save/here and gives me an error at
The error says:
Resolving domain.tld (domain.tld)... failed: Temporary failure in name resolution. wget: unable to resolve host address ■domain.tld■
Is this because name resolution isn't available so early in the boot process? Besides replacing the domain with an ip address bypassing name resolution, is there anything else I can do? I'd like to keep this all within the crontab.