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

0
votes
2answers
39 views

Why I can't redirect using `hosts` file in windows?

I want to go to www.Google.com when I enter 1.1.1.1 in my browser. So I think I must change hosts file under windows\system32\drivers\etc path in Windows to map this IP address to Google homepage. I ...
28
votes
6answers
52k views

Editing Hosts File in Windows 8

I'm trying to edit my hosts file in Windows 8 Pro. When I open C:\Windows\System32\Drivers\etc\hosts in notepad++ or any other text editor, make changes and attempt to save, I get a dialog that tells ...
2
votes
2answers
121 views

Hosts file missing in Windows 8.1

I am missing my hosts file in Windows 8.1.  I couldn't find it in C:\Windows\System32\drivers\etc.  Here is what I see in that location: hosts.ics, hosts.old, lmhosts.sam, networks, protocol and ...
4
votes
1answer
3k views

Windows 8. Hosts file doesn't work

I am using Windows 8 developer preview (x64) for testing purposes. I want to access some local network resource by DNS. So, I've added next line to my hosts file (%sindir%/system32/drivers/etc/hosts): ...
0
votes
0answers
45 views

Override localhost IP Adress in Windows 8.1

I'm trying to set up Windows 8.1 virtual machine through VirtualBox for testing a server running on my Mac (running Yosemite 10.10.3). VirtualBox sets up a the IP 10.0.2.2 to point to the host ...
0
votes
1answer
676 views

Prevent McAfee Security Scan Plus from installing - ever [duplicate]

Whenever Flash updates, some colleague or friend keeps pressing OK, and without noticing, McAfee Security Scan Plus is installed (and it happened to me several times as well). Then, after a while, a ...
1
vote
1answer
25 views

Linux/Windows hosts file

I need redirect the domain (www.pokus.cz) to my local IP address (192.168.1.100/preview) because I need to make a test of my new web pages. I read that it's possible with add lines in /etc/hosts/ When ...
2
votes
2answers
43 views

Is there a maxium number of hostname aliases per line in a Windows hosts file?

I have a hosts file on Windows 7 that has an IP address followed by 10 different hostname aliases. I can ping the first nine, but if I try to ping the tenth, I get Ping request could not find host ...
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 ...
0
votes
1answer
29 views

how can I extract entries out of the HOSTS file with the command line tool in Windows 7?

It concerns the HOSTS file, Windows 7 Ultimate 64bit. I want all entries/lines with a certain name in it to be written in a .txt file. how can I do this in the command line tool?
2
votes
1answer
95 views

Alternative to 127.0.0.1 in hosts file

I have a bunch of websites blocked at the system level in my Windows 7 by using the etc/hosts file. So far, I've done it the usual way, by giving 127.0.0.1 as the website's IP address. However, I'd ...
4
votes
4answers
3k views

Which leads to faster browsing, an ad blocker or an edited hosts file?

I recently came across the MVPS hosts file and became fascinated with the concept of blocking ads upstream from your browser. I don't know much about how quickly adblockers work, nor how quickly the ...
1
vote
1answer
54 views

Windows 7 lookups on first host file entry

Today my ISP blocked my internet due to suspicious activity - outgoing requests to malicious websites. Numerous scans of my machine couldn't reveal the culprit. However, after doing a quick netstat /f ...
0
votes
2answers
4k views

How to add/remove lines from the hosts file

I'd like to add and remove hosts file entries at a regular interval. I believe the easiest way to do this is powershell and task scheduler. So how do you add/remove hosts file entries?
1
vote
1answer
34 views

change IP when a CNAME is used

I want to set 96.7.41.139 as IP address of download.microsoft.com I checked this post: http://serverfault.com/questions/452268/hosts-file-ignored-how-to-troubleshoot and set hosts as below. ...
2
votes
2answers
82 views

Eset Smart security finds my hosts file as threat and quarantines it

Everytime I edit my hosts file, Eset Smart security finds my hosts file as threat and quarantines it. It says the host files is a Qhost trojan. What should I do?
3
votes
5answers
16k 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 ...
0
votes
1answer
37 views

Add hostname synonym

I'm attempting allow a hostname to used as synonyms for another hostname. For example : configure mymachine.com to be a synonym for localhost:8080 so if mymachine.com is navigated to in browser the ...
1
vote
1answer
45 views

why does my local hosts file enable me to see remote server php files?

I have a hosting package with some company. They give me a temporary URL at which I can access the site and see HTML files. But when I try to access PHP files it gave me an error (500 Internal Server ...
5
votes
0answers
140 views

Acrylic DNS Proxy not resolving

So I recently had an update issue where I landed up downgrading to Windows 8. As I need to do my work, I have re-installed my XAMPP server as well as Acrylic DNS Proxy. Unfortunately, Acrylic is not ...
-1
votes
1answer
269 views

Granting an Ampps privileges to edit hosts file

How could I grant an application such as Ampps privileges to be able to edit hosts file. I need such feature to easily handle local Vhosts using it. I use Windows 7 64 bit and Ampps ver. 2.4
27
votes
5answers
11k views

Force Chrome to open URLs as URLs, instead of searching

I have a local Apache server running, which is defined through /etc/hosts as "apache". So I often open pages like: http://apache/website/ Normally, this works fine. However, since I am using a more ...
2
votes
0answers
55 views

What more user-friendly options are available for overriding DNS than the HOSTS file? [closed]

I've used the HOSTS file for years to override DNS to allow me to view test versions of a site etc. running as if it were live. However, helping others who might want to see the site before it goes ...
0
votes
0answers
56 views

Single machine on my network can't load a specific website

One windows 7 machine on my local home network is having trouble loading www.reddit.com I'm on a hardline into a linksys e1200 router. Other devices (laptop, phone, etc) have had no issues (wireless ...
1
vote
4answers
3k views

Can updating the hosts file in Windows via batch file cause harm?

I have this script that I have saved as a .bat file. Can it hurt a computer? echo # >> %Windir%\System32\drivers\etc\hosts echo 0.0.0.0 www.facebook.com >> ...
0
votes
0answers
125 views

Changes in hosts file doesn't work

On my Windows 7 machine, I have modified my hosts file and put an entry in there for an IP address but the issue is it only works with the short name, i.e. 105.47.67.17 MyMachine works by ...
13
votes
3answers
8k views

Simulate manipulation of the etc/hosts file in Google Chrome

How can I set up Chrome to reference hostname lookups locally and not from the standard etc/hosts file? When debugging a website, it's sometimes useful to set up entries in ...
25
votes
3answers
7k views

Curl local host names on Mac OS X Yosemite

I just upgraded from Mavericks to Yosemite, and now curl can't see loopback host names. Set up a simple http server to test: $ python -m SimpleHTTPServer Serving HTTP on 0.0.0.0 port 8000 ... Now ...
0
votes
1answer
106 views

Block page with windows hosts file

I want to use the windows 7 hosts file (in C:\Windows\System32\drivers\etc\hosts) to block this page : play.chessbase.com/js/apps/playchess However, it is not working despite all these entries: ...
1
vote
3answers
2k views

Mapping one IP address to another in the 'hosts' file [duplicate]

The hosts file (%SystemRoot%\system32\drivers\etc\hosts) lets you make google.com point to, for example, 127.0.0.1 on your local machine, but what if I wanted to make, say, 192.168.1.5 point to ...
4
votes
2answers
489 views

Personal /etc/hosts?

/etc/hosts lets you set system-wide hostname lookups. Is there a place in OS X to set per-user hostnames? I use two user accounts on my laptop and I'd like to override IP addresses for just one of ...
0
votes
0answers
14 views

Is there an equivalent to the hosts file that is not system-wide? [duplicate]

Is there an equivalent to editing the hosts-file for ip to hostname mapping that is not global and system wide? Running FreeBSD.
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 ...
3
votes
2answers
2k views

Hosts file changes are not recognized in Windows 8

When i make changes to the hosts file in windows 8, it doesn't work. Although my changes stay in the hosts file. What I'm trying to, is to redirect the domain name riddergarn.dev to 127.0.0.1 with ...
0
votes
1answer
299 views

Hosts file redirect to domain [duplicate]

In the hosts file how do I make it instead of redirecting to an IP address redirect to either a domain(example.com) or a URL on an IP address(127.0.0.1/example.html)? I tried typing it in but it ...
1
vote
1answer
90 views

Block (nullroute?) an IPv6 hostname using /etc/hosts

I'm trying to prevent my web browser from communicating with certain hosts (mostly ads and tracking). I have a list of such hosts in my /etc/hosts file. For IPv4 I can do: 255.255.255.255 ...
1
vote
0answers
128 views

Create User Profile Specific Hosts File?

I know that by editing my C:\Windows\System32\drivers\etc\hosts file I can block any site, but I would like to take this a step further. Is it possible to have different version of this file for my ...
1
vote
1answer
38 views

Is there such a thing as a web browser where you specify host and IP for testing new sites? [closed]

Does any Linux software exist where I can specify a host xyz.com and an IP. The browser will then request a page from that IP specifying that host, no DNS lookup will be performed. I regularly move ...
0
votes
0answers
130 views

Cold Turkey not working with custom DNS server address

I blocked a few sites in cold turkey (http://getcoldturkey.com/) but after changing my preferred DNS, I discovered those rules weren't working. Is there a way to correct this?
6
votes
5answers
3k views

Hosts file on Mountain Lion stopped working suddenly

I have used my hosts file (located in /private/etc/hosts) several months to block distracting websites during the work day. This worked all well until now. Today it suddenly stopped working. Some ...
0
votes
2answers
804 views

Editing Host file to bypass a holding page

For the last two years I have secured Glastonbury tickets by editing my host file with: 194.168.131.174 glastonbury.seetickets.com This year, this has caused that particular website to be ...
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 ...
1
vote
1answer
217 views

Host File Information

I intend to change my organization IP CLASS from CLASS A or CLASS B for 250+nodes. I need to know if I can map a single host name for 2 different IP’s in the host file. For Example. 192.168.100.1 ...
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 ...
0
votes
1answer
54 views

Replace local host file modification with remote. Proxy server or something else?

I need to find a solution for a problem described below (both servers running CentOS 6) My goal is to have visible website to the public where a client will type own domain name mydomain.com and then ...
0
votes
1answer
252 views

Host angularjs.org not found: 3(NXDOMAIN)

My MacBook Pro OSX 10.9.4 has network problems now, and I cannot figure it out what is causing the problem. Today I am not able to access angularjs.org with any browser, but I can access other ...
-4
votes
2answers
111 views

How to bypass hosts file? [closed]

My school issues us laptops, which obviously has filtering. But, the filters don't work at home. And somehow, they can't block Google+, even at school, so they just pointed plus.google.com to ...
22
votes
3answers
31k 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 ...
2
votes
1answer
313 views

How to make Opera browser obey the etc/hosts file?

Current version of Opera browser doesn't obey etc/hosts file for domains outside the local network. It looks to me like it is using its own DNS resolver. For example if I create the following ...
-1
votes
3answers
99 views

Can you surf to a site that has shared hosting with ipadress?

Is it possible to surf to a site that has shared hosting on the web hotel with the ipadress? Can you change the hosts file in any way?