This is a migrated thread and some comments may be shown as answers.

Specify DNS Server

1 Answer 237 Views
Extensions and Customization
This is a migrated thread and some comments may be shown as answers.
Thomas
Top achievements
Rank 1
Thomas asked on 30 Jul 2014, 09:05 PM
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.

/Thomas

1 Answer, 1 is accepted

Sort by
0
Eric Lawrence
Telerik team
answered on 30 Jul 2014, 09:38 PM
Hello, Thomas--

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? 

Regards,
Eric Lawrence
Telerik
 

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.

 
Tags
Extensions and Customization
Asked by
Thomas
Top achievements
Rank 1
Answers by
Eric Lawrence
Telerik team
Share this question
or