hosts-file Questions

5

Solved

I'm using the .NET WebRequest while changing my HOSTS file. I'm observing that System.Net doesn't honor those changes - how can I make it do so? I have a number of servers load-balanced behind a s...
Guanabana asked 1/9, 2011 at 23:2

4

Solved

Chrome caches DNS records and tends to ignore changes to the hosts file after it has successfully connected to my site (barring a restart). With DNS pre-fetching enabled, it is even more pronounced...
Danielldaniella asked 1/12, 2010 at 7:15

12

I have a site set up locally to do development on it and I have added it to iis and edited my host file with the url (see below). However, when I browse to the url I only get the "hmm, we can't rea...
Mccary asked 14/9, 2015 at 11:25

9

Solved

I'm running Ansible playbook and it works fine on one machine. On a new machine when I try for the first time, I get the following error. 17:04:34 PLAY [appservers] *****************************...
Farron asked 13/5, 2015 at 22:15

0

I'm trying to edit the hosts file on an android emulator with API 30 - Android R. I have completed remount successfully but it says Remount succeeded. Reboot device for changes to be effective I ...

1

For years I’ve used /etc/hosts to adjust IP address. Sometimes it’s for prototyping, or adding an address for development purposes that isn’t ready to go into public DNS. And sometimes I bloc...
Presbyopia asked 30/1, 2021 at 19:42

2

In nginx the proxy_pass directive is not resolving DNS using the /etc/hosts file. Any way to enable this possibility (maybe by leveraging Lua as a last resort)?
Arawn asked 1/5, 2015 at 2:38

3

Solved

I am trying to create a local environment in Linux/Ubuntu. I have install Apache 2.4.7 (using apt-get). I have changed my /etc/hosts to this: 127.0.0.1 example.dev 127.0.0.1 localhost ... I al...
Bynum asked 26/11, 2014 at 22:48

6

Solved

I'm having a hard time geting Windows to take into account a new entry in my hosts file. I tried adding this line: 199.229.249.151 models.db To the hosts file found here: c:\windows\system32\...
Gills asked 24/7, 2013 at 19:6

3

Solved

Hee guys, little question: So i have setup the Homestead 2.0 and everything is working fine. I wanted to add another project in the same code directory but link it to another url. So i added it in ...
Hodosh asked 29/11, 2014 at 21:10

2

Solved

I'm using ApacheBench to do some load testing. I'd like ab to resolve the hostname using the IP address specified in /etc/hosts on my Mac. How can I force that? curl has a --resolve option to do ex...
Klansman asked 11/1, 2015 at 0:25

2

I'm running MacOSX 10.11.4. I'd like to have example.com point to my locally running apache server, but have www.example.com point to the actual website. Example: I have the following entry in my...
Burnsides asked 30/12, 2016 at 6:27

1

I'm attempting to redirect an existing web address to a remote machine on my subnet. To do that, I put the following into /etc/hosts 192.168.1.249 holub.com and flush the DNS cache with sud...
Mesitylene asked 21/6, 2016 at 17:56

2

Solved

I don't understand the difference between these terms and how they are connected. I looked at a hosts file on my computer and could see that 127.0.0.1 and localhost are connected but not sure how...
Oldworld asked 8/8, 2016 at 16:38

6

How would a program in C++/ C / C# program change the C:\Windows\System32\drivers\etc\hosts file content in windows? I know this sounds like phishing, honestly not.
Vespasian asked 29/6, 2011 at 21:2

2

Solved

The Windows Hosts file allows you to associate an IP to a host name that has far greater freedom than a normal Internet domain name. I'd like to create a function that determines if a given name wo...
Hydrodynamics asked 8/6, 2009 at 23:24

3

Solved

For my development process I need to access a webserver which is behind a VPN and has no DNS entry. What I was doing on 4.x was to edit /etc/hosts on the iPhone, and add it to the hosts file. Now ...
Emlin asked 19/9, 2011 at 16:7

10

After upgrading to Mac OSX Lion I figured out that /etc/hosts is not looked up in first place for name resolution anymore. This leads to some side effects like: Entries in /etc/hosts are re...
Pergola asked 27/7, 2011 at 8:24

1

Solved

Mac seems to be ignoring new changes to my hosts file. Older changes work without a problem. I've spent the past 4 hours trying to figure this one out. Help! I have folders for each site tha...
Dominant asked 15/1, 2012 at 18:40

8

Solved

I am developing an application that query to the server. In my Mac, I use the hosts file to change the dns to point to a local server within my local area network. Now I need to test it with...
Minuet asked 8/1, 2010 at 15:27

3

Solved

I have the following problem: I make a custom hosts file to test some features of my application and then push it to my android emulator. The thing is that these settings do not take effect immed...
Camorra asked 13/11, 2010 at 22:25

1

Solved

I have some wrapper code that runs a set of NUnit tests that scan live websites for certain response codes. I'd like to run these tests against a different server. When running manually, I can do ...
Parceling asked 13/5, 2011 at 13:36

3

Solved

I'm writing a little WPF utility to manage entries in the hosts file for dev purposes. As you might know the hosts file is protected by the newer OSs (Win 7/2008/Vista). I've added a manifest to m...
Pazice asked 7/7, 2010 at 9:13

2

I'm trying to block a website using the hosts file using this tutorial : http://hackspc.com/how-to-block-a-website/ but It doesn't work, the website I'v blocked In this case facebook still s...
Eure asked 6/1, 2010 at 10:56
1

© 2022 - 2024 — McMap. All rights reserved.