I've had working script, which suddenly doesn't works. It contains something like this:
while read url; do curl $url done < links
And I get couldn't resolve hostname error.
curl: (6) Could not resolve host: google.com curl: (6) Could not resolve host: duckduckgo.com
But, when the loop is removed, it works so it's not a network problem.
url="http://google.com" curl $url
I've been looking into this whole day and I believe it is some stupidity but I wasn't able to figure it out. (quotes tried)