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

2
votes
2answers
11k 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
3k 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
549 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
11k 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 ...
8
votes
4answers
20k 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
5k 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
359 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
17k 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 ...