Specify DNS Server

2 posts, 0 answers
  1. Thomas
    Thomas avatar
    1 posts
    Member since:
    Jul 2014

    Posted 30 Jul 2014 Link to this post

    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.


  2. Eric Lawrence
    Eric Lawrence avatar
    832 posts

    Posted 30 Jul 2014 Link to this post

    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? 

    Eric Lawrence

    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.

Back to Top