check out this post regarding an identical issue. In the OPs case, it was DNS configuration, which is what your message alludes to when it states the URL is not found.
Or you can consult this handy website which will tell you if the problem is DNS related:
(note: this is a joke website )
Hi, the strange think is if I run it manually using terminal then it downloads fine.
That’s probably because the terminal is running as you whereas what comes through Automox is running as root. Differences in the environment variables could be throwing a wrench in things.