Dns caching for sockets

Posted by Poma on Stack Overflow See other posts from Stack Overflow or by Poma
Published on 2010-05-30T11:43:30Z Indexed on 2010/05/30 11:52 UTC
Read the original article Hit count: 328

Filed under:
|
|
|

I'm connecting to some websites through socks proxy server. In my case its very good to implement dns cache, so proxy don't need to resolve website's ip address. So, I performed DNS lookup, but don't know where to supply IP address. mySocket.Connect uses proxy's ip address so it isn't right place. I tried to place it in http header GET http://11.22.33.44/index.html HTTP/1.1 - this doesn't work (even in browser) since website is on virtual hosting. It seems that Host header is right place for resolved ip address. Am I right? Will proxy resolve host name (since it's still there in GET header) or not?

© Stack Overflow or respective owner

Related posts about c#

Related posts about sockets