Let us say I am sending a GET request to an URL which's DNS record contains multiple IP addresses (DNS Round-Robin). For example, to the https://www.twitter.com
. If we do dig
of it, we see:
;; ANSWER SECTION:
twitter.com. 60 IN A 104.244.42.193
twitter.com. 60 IN A 104.244.42.129
I have tried to use DEBUG logging as described here: https://stackoverflow.com/a/16630836/1479414 however it does not show which IP address it uses.
Furthermore, I looked also at this answer: https://stackoverflow.com/a/22513161/1479414 about how to see the destination IP address, but it is not what I actually want to see -- this one shows me the finally used IP address.
I want rather to see which IP addresses are tried during all attempts, while the library performs DNS failover. Something like:
Trying to connect to 104.244.42.193... failed, trying to connect using another IP address
Is it possible to see somehow?