I'm having trouble getting a curl response from an external server. I am working on a debian server I did not set up and the external resource (www.example.com) has be configured to not receive ping requests.
The debian server accepts incoming traffic but should have its outgoing traffic limited to www.example.com by the network. Not sure how to test if it can reach www.example.com.
From the debian server I would like to curl an api on an external resource (www.example.com/api).
currently trying to curl like this
curl -X GET https://www.example.com/api/ -H 'Authorization: Token MY_SECRET'
responds with this:
curl: (6) Couldn't resolve host 'www.example.com'
I'm not very familiar with server configuration but my searches have been pointing to a resolv.conf configuration, but I can't figure out how to test that and haven't been able to find a clear enough example for someone will as little familiarity as I.