Calling WinSock and WinHttp inline causes DNS Cache TTL not be honored RRS feed

  • Question

  • Thank you for any insight that can be brought to this issue.

    GetAddrInfoW and WinHttpSendRequest are used in a Windows 7 x64 SP1 fully updated environment.  A simple C++ console application makes a call to GetAddrInfoW and then call WinHttpSendRequest.  When monitoring with Network Monitor using the DNS filter.  The DNS query resolves with a TTL of 240 seconds.  Five seconds later the application loops again making the same requests after closing the handles, and the DNS query is made again even though the DNS Cache TTL has not expired.

    The DNS Cache TTL is not honored only when on private DNS.

    The DNS Cache TTL is honored when off the private DNS.

    How could the DNS effect the DNS Cache from being honored on the client?

    Wednesday, April 26, 2017 2:52 AM

All replies

  • Hi, 

    To help you better, I suggest you submit a new case on MSDN forum as they will be more professional on your issue:


    This is the MSDN forum link.


    The reason why we recommend posting appropriately is you will get the most qualified pool of respondents, and other partners who read the forums regularly can either share their knowledge or learn from your interaction with us.  Thank you for your understanding.

    Please remember to mark the replies as answers if they help.
    If you have feedback for TechNet Subscriber Support, contact

    Tuesday, May 2, 2017 5:31 AM