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

5
votes
1answer
423 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 ...
5
votes
1answer
4k 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): ...
3
votes
1answer
3k 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 ...
3
votes
1answer
736 views

Access mac virtual host from a virtual machine

Here's my setup: I'm developing a website on a mac. I created a virtual host, so I can open up my browser, type http://cpp and it will point to the right directory. I want to test this website out ...
2
votes
1answer
356 views

Cannot access shared drive in same machine uisng machine name but can access using IP

I have 4 desktops running Windows Server 2008 32bit version. I created some shares in all these machines. My program gets files from these machines (like \machine1\abcd). The machine names mentioned ...
2
votes
1answer
374 views

Changed /etc/hosts entries, but they are still pointing to localhost

I've had two sites on my local host and have had mysite1.local and mysite2.local in my /etc/hosts file to pointing in my localhost. Now, I moved those sites into my homeserver (Ubuntu, Local network) ...
2
votes
1answer
1k views

can't override name resolution for firefox on Ubuntu

I need to override the name resolution for a given domain name for testing purposes in my browser (Firefox) on Ubuntu, so that when I write "www.agivendomain.org", it will point to a given IP that I ...
1
vote
1answer
39 views

Windows 7 PC, Google blocked. All other sites OK

All google sites seem blocked with "This page can't be displayed" Error. I can ping all the google servers but even trying the IP doesn't work. Same message. I have checked hosts files. I have done ...
1
vote
1answer
60 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. ...
1
vote
1answer
827 views

Hosts files keps reverting when I turn off my computer.

I have changed my host file to allow me access via RDC to computers over VPN network. I change the ip's and it works fine. My problem is that every time I log back onto my computer they have ...
1
vote
1answer
371 views

How to disable unneeded error message using hosts file in Google Chrome

OS=Debian squeeze, browser Google Chrome 15.0.874.106 I use the hosts file to block unwanted sites, especially ad sites, from loading into the browser. In Iceweasel/Firefox you can block "unable to ...
0
votes
1answer
54 views

Browsers seems to ignore the hosts file while ping works?

I am trying to make xyz.com always map to google.com (216.58.219.206) on my machine (OS X El Capitan). Made the following changes to the /etc/hosts file: 216.58.219.206 xyz.com I've cleared the ...
0
votes
1answer
72 views

Can I use /etc/hosts file to block ads when using Ubuntu 14.04.3 OpenVPN server?

I have an OpenVPN server hosted on Digital Ocean. I've uploaded a hosts file to the server to help filter a lot of unwanted domains. When using the server, it filters the domains. However, when I use ...
0
votes
1answer
30 views

Can /etc/hosts or something similar be used to redirect a http URL to a file path?

My Windows 7 admin pushes out some proxy settings (e.g., a proxy.pac file available through http) to my computer every night that I don't want. I have modified this pac-file and stored it locally, on ...
0
votes
1answer
23 views

Using the command line in order to change hosts/hostnames on Centos

I need to use the command line in order to add a new host resolution on a temporary basis. I use centos. I need a new localhost resolution such as the following: 127.0.0.1 something.localhost ...
0
votes
1answer
323 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 ...
0
votes
1answer
143 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
151 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
1answer
427 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
920 views

Network Manager overriding /etc/hosts file

I believe the network manager service on Oracle Linux 6 is causing problems for the clouder-scm-agent which is running on my machine. The clouder-scm-agent starts up on the server ip it resolves from ...
3
votes
0answers
861 views

Can I force Tor/Polipo to use locally defined hosts?

I would like to use addresses defined in my hosts file while using Tor. I have the Tor (non-browser) bundle installed: Tor, Polipo and Vidalia. I do not use Torbutton. My browsing is normally done ...
1
vote
0answers
43 views

Replace / Edit host file with windows BAT

I wish to add and remove some lines in host file within a period of time (Time setting will be done via task schedule job) I can create two BAT file, one for adding new lines and one for removing ...
1
vote
0answers
6 views

Automatically rewrite UNC Path (using lmhosts if possible)

I have to VPN into a domain for work. On their internal network, paths are in the format of (for example) work.local\shares\Share\SomeDirectory\SomeFile.ext. When I utilize the VPN, however, I have to ...
1
vote
0answers
38 views

Better to block a host to 0.0.0.0 than to 127.0.0.1?

I have a few hosts that I would like to block in my /etc/hosts file. For that I need to define a bogus IP address that the DNS queries get resolved to. Most of the tutorials I saw so far all mention ...
1
vote
0answers
32 views

Possible to make a program to check Windows hosts file every minute?

I know how to block facebook using hosts file. Problem is that I can just easily edit hosts file and do facebook again. So if there is a program that reports whether hosts file currently contains ...
1
vote
0answers
191 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 ...
1
vote
0answers
309 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
0answers
2k 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
0answers
3k views

windows 8.1 update disabled local website for IE

I use the Windows hosts file to resolve domains for websites on my local IIS. It worked great under Windows 8. I just updated to Windows 8.1 and none of my local sites will resolve in IE11. Even ...
1
vote
0answers
60 views

HOSTS mapping not working as expected

I'm running a local Webmatrix configuration which uses IISExpress as webserver. For convenience's sake, I have configured my remote development setup (http://godrul1.gopagoda.com/) to ...
1
vote
0answers
34 views

Hosts file, but for directories

I know you can use the hosts file to redirect requests from a certain domain to a different domain (adding 127.0.0.1 google.com would make all requests from google.com instead go to 127.0.0.1). I want ...
1
vote
0answers
72 views

Finding the domains for Microsoft Word on Mac

My parents both use Macs to do their work and my dad bought three licenses for Microsoft Word on Mac. The problem is that he somehow set up the programs so that only one can be used at a time, meaning ...
1
vote
0answers
144 views

Why does OS X Snow Leopard have two hosts files?

I noticed that OS X has two hosts files: /private/etc/hosts and /etc/hosts. What is the difference between them? I was attempting to modify my iMac's hosts file in Terminal and tried the usual sudo ...
0
votes
0answers
48 views

Ever since upgrade to Windows 10, Firefox 45 and Chrome 49 just loop when override with hosts file entry

The standard method of developing dev sites, or accessing temporary old sites after moving them is to place an entry into c:\windows\system32\drivers\etc\hosts - just like /etc/hosts on UNIX machines. ...
0
votes
0answers
23 views

Apache serving files as plain text

Yesterday I received my Raspbarri PI 3, which I ordered to experiment around. It's up and running with Ubuntu MATE, and connected to the network. Now I've got a few little Django projects (1.9) which ...
0
votes
0answers
60 views

Password protected host file is not readable

I want to set a password on host file which resides in the windows path windows/system32/drivers/etc/host I could password-protect the file by using winrar and that's not a problem. However, doing so ...
0
votes
0answers
25 views

Firefox Caching old Hosts file settings?

I have an imac where the family account has no password. Then I have a second account for me which is admin. I keep my dev stuff there etc. I keep my teenager from accessing social media on the ...
0
votes
0answers
25 views

Having two IPs for same hostname in hosts file

Request I would like to have my hostname let's say hostA resolve to IP1 if i am at home and IP2 if i am remote Is it possible to have two IPs for the same hostname so that it tries them both and takes ...
0
votes
0answers
65 views

Does Blocklist manager still work and if no, what's an alternative?

Years ago I used a handy program called BlockList Manager. Though the website is still up, I can't find any working download links. I was able to downoad it from this site and run it but the program ...
0
votes
0answers
273 views

Is it possible to apply parts of AdBlock+'s EasyList Adblocking list to the hosts file in any way?

I use AdBlock+ for Firefox, but I was wondering if it would be possible to apply AdBlock+'s EasyList filter to the Windows Host file. I doubt that that is possible because of the rules in the EasyList ...
0
votes
0answers
179 views

Use /etc/hosts entry for nginx proxy_pass

I'm currently linking together a couple of Docker containers so I can create a reverse proxy using Nginx and the services running on those containers. An entry looks like this: location / { ...
0
votes
0answers
178 views

Apache cannot resolve /etc/hosts entries without internet connection

I alias tw/twcdn.localhost to 127.0.0.1 in /etc/hosts: $ cat /etc/hosts 127.0.0.1 localhost.localdomain localhost hostname tw.localhost twcdn.localhost 192.168.1.2 benito-laptop ::1 localhost ...
0
votes
0answers
85 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
340 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
0answers
267 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
0answers
305 views

How to expose a IIS website outside the domain

I have been programming remotely over VPN on my dev machine which is running Windows server 2003. My dev website is hosted on IIS 6 and can be accessed internally within the domain like ...
0
votes
0answers
119 views

Hosts file keeps being ignored in Windows 7

Something keeps happening to my hosts file (%SystemRoot%\System32\drivers\etc) which means that Windows 7 ignores it. I use it as part of the process of creating Virtual Hosts for WAMP e.g. ...
0
votes
0answers
69 views

Custom Hosts file entry resolves in browser but not when pinged

I have a hosts entry to redirect app-dev/ to my application server. This resolves correctly in the browser but when I try to ping app-dev/ or ssh into it, neither can resolve the name then. The only ...
0
votes
0answers
901 views

What's causing this site to redirect to my localhost?

[x-post SO] yoast.com is redirected to my localhost server. I've only mapped localhost to gomlm.gopagoda.com in my HOSTS file, so that I can work on my localhost version without changing the ...
0
votes
0answers
91 views

switch hosts-file during win7 boot process

I have 2 hosts files on my win7 machine that i switch manually (.bat file run as administrator) when i'm either in the company vpn or connected to the comany network directly. What i would want is an ...