Overriding Hosts file using Fiddler

Configure a domain name instead of localhost:8080 (server ip:port)

This is similar to what we have been doing with windows Hosts file (Windows\System32\drivers\etc\hosts).

Due to some limitation, in some cases you can’t specify the port number in hosts file along with the IP address to map with a DNS name and there we need to use such proxy server. Also you can achieve the same using nginx or apache.


localhost:8080 ourhints.com

or ourhints.com

You can open the fiddler and start capturing the traffic. To override hosts file, you can specify DNS mapping to an IP address as shown below or alternatively you can import hosts file. Save this configuration.


# can be used to comment any line similar to Host file on window.

Now open any browser and hit the url http://ourhints.com  it will be routed to or http://localhost:8080

4 thoughts on “Overriding Hosts file using Fiddler

  1. Abhinav says:

    Youre so cool! I dont suppose Ive read something like this before. So good to seek out somebody with some authentic thoughts on this subject. realy thanks for starting this up. this web site is one thing that is wanted on the net, someone with a bit of originality. helpful job for bringing something new to the web!

  2. furtdsolinopv says:

    Heya i am for the first time here. I came across this board and I in finding It truly useful & it helped me out a lot. I am hoping to present one thing again and help others like you aided me.

  3. RANDY ANTO says:

    Very nice article. I certainly appreciate this website.

  4. Jules Anestos says:

    Aw, this was an extremely nice post. Taking the time and actual effort to create a very good article… but what can I say… I hesitate a whole lot and don’t seem to get nearly anything done.

Leave a Reply

Your email address will not be published. Required fields are marked *