The "hosts file" is a common tool in operating systems to map names to IP addresses. These mappings usually take precedence over the DNS system.

learn more… | top users | synonyms

3
votes
4answers
6k views

Browsers ignoring hosts file

Until recently my browsers started to ignore my hosts file. I have Windows 7 operating system installed. 192.168.0.5 livesite.com I have tried: Clearing browser cache Issued "ipconfig ...
5
votes
4answers
2k views

Windows redirect traffic to different DNS name not fixed IP address (hosts file equivalent)

Using the Windows hosts file, one can redirect traffic for a domain to a specific IP address, e.g. domainA.com --> 127.0.0.1 I am looking for a SIMPLE way to do the same, but for a target domain ...
0
votes
2answers
808 views

What is Windows “hosts” file alternative for OSX?

I just got a Mac computer (OSx v10.6) to test my web site design. Web site is running on the local network, and in windows computers I use "hosts" file to map its network IP address to domain name, ...
1
vote
2answers
948 views

Global Hosts file WINDOWS [duplicate]

Possible Duplicate: Can I have Windows use additional HOSTS entries from a file server? How can I set up a global windows hosts file on my network. I have a server store the file on.
1
vote
1answer
262 views

Can I have Windows use additional HOSTS entries from a file server?

I have a network of computers and a server. I often need to edit the hosts file of all the computers to add a new entry or to change one. e.g. 192.168.1.101 temporary-internal-site How can I get ...
0
votes
2answers
7k views

Host file not working on Windows 7

Our ISP accidentally switched us from a static IP to DHCP (long story) and it might be another day or two before we get our static IP back. In the meantime I'm trying to just use a host file on my ...
3
votes
1answer
424 views

Hosts file - Many entries

I noticed Spybot - Search & Destroy adds almost 15k entries on the hosts file (C:\Windows\System32\drivers\etc\hosts) if you decide to immunize. Does this decrease the computer performance, ...
4
votes
7answers
7k views

My Hosts file broke: Ping request could not find host test

Here's my hosts(with a single entry): 127.0.0.1 test But it's not working any more: C:\Documents and Settings\Administrator>ping test Ping request could not find host test. Please check the ...
2
votes
1answer
18k views

Adding localhost entry to Windows\System32\drivers\etc\hosts file with port number

I have set up a local site under IIS 7.5 under port 900. to access it I should type localhost:900 in the address bar. I'm a little bit familiar with the System32\Drivers\etc\hosts file and I know I ...
2
votes
2answers
1k views

How to block a specific site's directory in windows? [duplicate]

How can I block a specific directory of a website as e.g. http://example.com/someSite unfortunately the hosts file is not an option since you can only block whole domains there and any "/" just ...
2
votes
1answer
2k views

Hosts file in Windows 7 screwed up!

I recently changed my Hosts file to block some websites in Windows 7. Now I think it is blocking lot of other sites that were not added to Hosts file. Is there any way to escape this? I tried to ...
0
votes
2answers
519 views

To improve my productivity: how to lock the /etc/hosts file on Linux with a passcode?

I would like to lock the /etc/hosts file somehow in a way that only someone else can unlock it, possibly using a lock code. I would then give the passcode to someone else. I'm running Ubuntu 10.10.
26
votes
3answers
36k views

What is the relevance of “fe80::1%lo0 localhost” in /etc/hosts?

Following are the entries in my /etc/hosts. I was wondering what is the last entry (fe80::1%lo0 localhost) for. 127.0.0.1 localhost 255.255.255.255 broadcasthost ::1 localhost fe80::1%lo0 localhost ...
29
votes
8answers
6k views

Browser with its own hosts file?

I have a number of staging and test servers that I need to constantly modify my hosts file to access (they depend on the domain name, so I have to change the hosts file to get them to work). I find ...
4
votes
2answers
2k views

why /etc/hosts don't effect to my firefox on Ubuntu 10.04?

I tried to block some hosts to load from them ads and scripts. for example in /etc/hosts: 127.0.0.1 web-visor.com 0.0.0.0 c1.web-visor.com Why after editing and saving the file, firefox (after ...
0
votes
1answer
278 views

After reset /etc/hosts, firefox stuck requiring authentication

I have a test site, which need authentication to access. The map between ip and domain is given in /etc/hosts. Today, the ip of the domain changed, so I modifid /etc/hosts. Then the bad thing happens, ...
3
votes
2answers
13k views

Why is a reboot not required after changing HOSTS file content

I was having a discussion with someone who asked me whether a Linux OS has to be rebooted when the hosts file is modified. From personal experience, on Windows I change the file but don't reboot and ...
2
votes
2answers
3k views

Ubuntu hostname problem

after updating to Ubuntu 10.10, the hostname settings are no longer correct. The content of the /etc/hosts is modified at each startup to something like: 127.0.0.1 mariusbotis ...
6
votes
2answers
4k views

Hosts file location in Windows 7

I know the hosts file should be under C:\Windows\System32\drivers\etc\ But for some reason, I don't have the etc directory there at all. In fact, I searched for "hosts" under C:\Windows and found ...
0
votes
2answers
655 views

Does the event log show when a Windows hosts file has been changed?

It seems like someone has been tampering with a hosts file on a client server (they have multiple sites hosted on their server which are managed by different users) Today one of our services stopped ...
1
vote
4answers
12k views

Why doesn't my HOSTS file redirect DNS in Windows 7?

I've modified the HOSTS file on my Windows 7 machine in exactly the same manner as I have in the past on my Vista and XP machines; however it has had no effect. How do you redirect URLs in Windows 7 ...
10
votes
4answers
23k views

Override DNS in Firefox

I'm looking for a way to override DNS entries in Firefox, for development/testing purposes. I know the normal way to do this is via the hosts file, but I cannot edit it since I don't have admin access ...
0
votes
5answers
3k views

Windows 7 etc/hosts file broken?

I have a local webserver running that I would like access as myserver.localhost, so I added an entry 127.0.0.1 myserver.localhost to C:\Windows\System32\drivers\etc\hosts. This worked fine. ...
1
vote
2answers
6k views

Can regular expression be written in /private/etc/hosts file

abc.local xyz.local dumy.local www.google.com local.testserver.net .... Can we write some kind of regular expression or Rule in "hosts" file to redirect certain domains ending .local to certain ip ...
3
votes
1answer
1k views

Hosts file resetting on Windows 7

Recently I've noticed my hosts file resetting itself. D:\Windows\System32\drivers\etc (OS installed on D drive) First time it reset it to the default, and now for the first time its completely ...
1
vote
2answers
365 views

Everyone group Full Control of HOSTS file

Am in the process of documenting how to install a new remote access solution across (our granted somewhat small) user base. During the install of the client on XP the program asks to be given access ...
10
votes
3answers
1k views

How do you edit hosts file on Windows 7

I'm trying to edit the hosts file (C:\Windows\System32\drivers\etc\hosts), because I want to setup a local redirect for my website (like I've always done in XP). However, I can't save the changes! I ...
3
votes
5answers
19k views

With Windows 7, why is an entry in the hosts file not working?

I updated some entries in the hosts file at C:\WINDOWS\System32\drivers\etc. As a test, I decided to make Google point to 127.0.0.1. # Additionally, comments (such as these) may be inserted on ...