Thursday, 6 June 2019

DNS Request over SOCKS5 using Python 3

I have to make a DNS request using python 3 over a SOCKS 5 proxy. (consequently NO DNS requests are made from my ip address, the socks5 proxy does it for me and should respond with the according A/AAA records or nothing/something else if it can not resolve it)

I found the following github projects:

rthalley/dnspython: no proxy/socks support

Anorov/PySocks: no ipv6, no possiblity to receive the remote DNS response

I found the following stackoverflow thread: Python - Using socket.gethostbyname through proxy -> It uses pysocks, which has no ipv6 support -> not useable for me

Do you have any idea how to accomplish my task?



from DNS Request over SOCKS5 using Python 3

No comments:

Post a Comment