I need to access a specific server and it just responses to connections with a specific DNS server. So before connecting to that website I need to set my system DNS servers to custom IPs. That's ok, but now I'm working on a python script with a requests module and I want to access that server. How can I set custom DNS IPs to requests session to do GET function with those DNS servers? I should say that I just need a JSON file from that server, so It's just exhausting to change DNS servers every time.
Asked
Active
Viewed 751 times
1
-
Looks like it is the duplicate of https://stackoverflow.com/questions/22609385/python-requests-library-define-specific-dns – n0nvme Oct 10 '20 at 18:40
-
actually, I think it's a different answer and doesn't work for me. – soroushamdg Oct 10 '20 at 19:24