Disabling DNS caching. RRS feed

  • Question

  • Hi,

    My application instanciates a .net web service client class implemented in c# exposed via a com object.

    I noticed that the application (.net runtime code?) is caching DNS and I have to restart it in order to get it resolved correctly. Is there a way I could tell my app not to cache DNS queries?..



    Tuesday, October 24, 2006 12:34 PM

All replies

  • I forgot to mention that I use SSL for the Soap transaction. I was thinking of calling dns.gethostbyname to resolve IP and set the url property using the retrieved IP but I haven't tested it yet and I guess it must be a setting to prevent DNS caching.

    Cheers, Frederic

    Tuesday, October 24, 2006 1:38 PM