This is a followup of Can Tor be configured to run on all outgoing connections on a server?
I've successfully placed Tor as a transparent proxy over my VPS, however, I'm getting some trouble.
I am trying with
Sometimes, it returns an IP which is different from the original one of the server. Sometimes however, it returns "Couldn't resolve host".
It seems as though every once in a while, if I wait, then curl, it would give the error, and subsequent calls would return an IP like intended.
What could be the cause? How can I further debug this?
curl -v icanhazip.com
Gives me the following:
* getaddrinfo(3) failed for icanhazip.com:80 * Couldn't resolve host 'icanhazip.com' * Closing connection #0 curl: (6) Couldn't resolve host 'icanhazip.com'