How do i specify which DNS server FiddlerCore should use
I want to override the use of the system DNS Server, and not by changing the system DNS Server, but changing the DNS server programmatically at runtime during BeforeResponse, or less preferable, before FiddlerApplication.Startup.
1 Answer, 1 is accepted
answered on 30 Jul 2014, 09:38 PM
That's a very interesting question. FiddlerCore (and pretty much everything else on your system) will use the default OS DNS resolver to resolve hostnames. Fiddler/FiddlerCore allows you to override the address used to connect to a target server (via the X-OverrideHost Session flag) but I'm not aware of anything in the .NET Framework that would allow you to make DNS queries of an arbitrary DNS server-- you'd have to include a DNS Client in your extension that allows you to use the target DNS server for resolutions. (See e.g. http://www.codeproject.com/Articles/23673/DNS-NET-Resolver-C)
Can you elaborate on why you would want to do this?
Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.