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
0answers
43 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
39 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 ...
0
votes
0answers
50 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 ...
0
votes
1answer
64 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
247 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
444 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
13 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.
0
votes
1answer
119 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
0answers
79 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 ...
16
votes
3answers
3k 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 ...
1
vote
1answer
70 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
1answer
35 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
2answers
703 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 ...
0
votes
0answers
111 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?
0
votes
1answer
44 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
220 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
84 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 ...
2
votes
1answer
212 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 ...
0
votes
1answer
179 views

HOSTS file entries leading to permissions issues - Windows Server 2012

We have a HOSTS file that maps a document server to an IP address of the local machine, it looks similar to this: DocumentServer 10.xx.xx.11 The local IP address being 10.xx.xx.11 We are ...
3
votes
1answer
560 views

Editing hosts file to block sites not working

I put these lines in my C:\Windows\System32\drivers\etc\hosts file: 127.0.0.1 www.cnn.com 127.0.0.1 cnn.com 127.0.0.1 facebook.com 127.0.0.1 www.facebook.com 127.0.0.1 www.hotnews.ro 127.0.0.1 ...
0
votes
1answer
75 views

Blocking specific websites from browser (PC and phone) while preventing myself from unblocking them without content of others

I am trying to find a PC software (and app for phone) to block specific websites, and only the person with certain privilege (e.g. who knows the password) can unblock certain websites. (I haven't yet ...
0
votes
1answer
163 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
-3
votes
1answer
63 views

Locking Windows hosts file by password or something [closed]

I want to stop distractions like facebook.com So I put 127.0.01 facebook.com It works and I do facebook less. But still I sometimes access hosts again and erases it to do facebook. Can I lock ...
16
votes
2answers
2k views

Could I access a blocked website via a virtual machine if the host OS has the web address blocked in its hosts file?

I was going through this Net Nanny article that mentioned about the various ways its web filter could be bypassed by kids. Among other methods, I saw this: One way that teens can get around the ...
0
votes
1answer
67 views

Where does Gas Mask store its data on OSX?

I use Gas Mask to manage my hosts file on OSX. Where does it store its data?
0
votes
0answers
85 views

Check local hosts file (Win7) and proxy.pac

I have two groups of computers at the school: 1) computer lab, and 2) anywhere else. These are all Windows 7 machines. Up to now, I've had two versions of the Window's hosts file depending on which ...
0
votes
0answers
37 views

Additional password for hosts file on mac

Is it possible to set up an additional password for changing the hosts file on mac? When i use the command: sudo nano /private/etc/hosts I have to use the admin password to enter the hosts file. ...
0
votes
1answer
60 views

Block specific url paths

I want to block a path (eg http://superuser.com/megasupersecret), but not the whole domain (http://superuser.com). In the host file, i've tested like this: 127.0.0.1 ...
1
vote
0answers
1k views

How do i make Chrome use an IPv6 address from my hosts file?

I have a Windows 7 machine that's running Ubuntu in a VM. The VM has an interface configured as an IPv6-only, host-only network. The network is statically set up, and all that seems to be working. ...
1
vote
3answers
893 views

Block all websites in Windows 8, except for 3

I would like to create a whitelist of 3 websites on a Windows 8 machine. All other websites would be blocked. This environment is not managed by a server, these will be just 2 independent boxes. One ...
1
vote
1answer
323 views

Tracking down edits to my /etc/hosts file

Every hour at :49, my hosts file is being replaced with the following: # Copyright (c) 1993-1999 Microsoft Corp. # # This is a sample HOSTS file used by Microsoft TCP/IP for Windows. # # This file ...
0
votes
1answer
481 views

accessing remote server with name instead of ip address and port number

I have question regarding accessing my web application with some name,which is deployed on remote server. Currently, I using following URL http://160.110.67.181:8080/myapp So, I'm wondering ...
0
votes
2answers
46 views

Editing the OS X hosts file with a one-time password

I was wondering if there was a way to edit the host file using a "throwaway" password. I want to prevent myself from entering certain websites, but OS X doesn't not have a good alternative for Cold ...
0
votes
1answer
434 views

Windows - make hosts file affect ICS

I am running an Ad Hoc Wi-Fi network (Hosted network using Microsoft Virtual WiFi Miniport Adapter) on my PC. I used ICS (Internet Connection Sharing) to link my existing Wi-Fi connection through to ...
1
vote
3answers
75 views

What is writing to my hosts file?

I've got an odd situation where I'm emptying out my hosts file but when I ping something that used to have an entry in the hosts file the hosts file gets populated with the entries that I've just ...
1
vote
1answer
96 views

Local Network web site access with multiple computers

I have a local site running through my server computer located at 192.168.2.111 (port 80) on my network. I'm currently running the site using XAMPP. In order for the site to be accessed, I have ...
0
votes
2answers
655 views

Editing /etc/hosts to use domain name instead of ip address

I have a web service running at http://192.168.1.2:5000/, I want to replace it with a typical domain name, in /etc/hosts, I'm doing something like 192.168.1.2:500 http://www.mydomainname.com but, ...
0
votes
1answer
2k 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?
2
votes
2answers
2k views

Why is Chromium bypassing /etc/hosts and dnsmasq?

I'm using hostsblock together with dnsmasq on Arch Linux to block some websites, one of them is facebook.com and www.facebook.com. I know everything is working properly because a simple ping to ...
0
votes
1answer
106 views

Sinkhole Planning

I am currently planning on setting a network sinkhole in my... network. I have a list of sites that I want to block, around 300k of them. What is the recommended way to do this. My computer is its own ...
0
votes
0answers
34 views

redirect from one site to another [duplicate]

To avoid spending time on the internet I decidet to block several time wasting web sites I added rule redirecting several pages to localhost changine file C:\Windows\System32\drivers\etc\hosts I ...
1
vote
3answers
601 views

Easy way to view a website at a different IP than associated with hostname?

Some background — WordPress is really annoying in terms of what hostname you access it from, which makes creating testing environments rather painful (That is, I could create a subdomain for staging, ...
0
votes
0answers
161 views

Changing hosts file in Mac OS X does not take effect

I have tried to alter the hosts file adding my own entries to access sites that are being blocked by my ISP. When address the entries as follows 194.71.107.82 totallylegalsite.se After adding ...
0
votes
3answers
10k views

Why does localhost not work in Windows 8.1, but 127.0.0.1 does?

I have a HTTP server running on port 9876. I put http://127.0.0.1:9876/ into Chrome and the page loads instantly. I put http://localhost:9876/ into Chrome and the page never loads. I have never ...
0
votes
2answers
212 views

My Mac is not responding for this own IP, but it's ok for everything else

My Mac has the IP 192.168.1.123 and this network settings: IP: 192.168.1.123 Net Mask: 255.255.255.0 Router: 192.168.1.3 DNS: 208.67.222.222, 8.8.8.8 and apache answer correctly if I request ...
0
votes
1answer
218 views

DHCP fallback based on /etc/hosts lookup of your hostname

I have a Kubuntu box (12.04) which usually gets its IP via DHCP. However, it also has a hosts file with some entries in case the DHCP+DNS server fails. Now, if there is no DHCP available, I want the ...
0
votes
1answer
310 views

With a hosts file Chrome takes too long to realize that 0.0.0.0 isn't real

So i have a hosts file with many links set to 0.0.0.0, and a lot of times when i go to websites, Chrome is taking too long "waiting for googlesyndication.com" (ad sites that i put in the hosts file) ...
0
votes
1answer
105 views

How to make local DNS for pointing domain *.local to localhost?

I'm developing websites and I use xampp which is configured to automaticly point some type of domains to xampp main directory. For example: When I go to site1.local xampp is displaying page located at ...
3
votes
4answers
2k 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
381 views

port number in acrylic dns proxy hosts file

I want to map a url as follows: 127.0.0.1:8080 *.devserver.com but windows host file neither support port number nor wildcards.So I am using acrylic dns proxy which supports wildcard.So following ...