Questions tagged [hosts-file]

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.

Filter by
Sorted by
Tagged with
0 votes
1 answer
372 views

Need help setting up FQDN with Dynamic IP on a Arch Linux box

I'm running Arch Linux and I'm trying to figure out what the proper way to set up my FQDN on my box. I plan to be running Nextcloud with some other stuff and I want to have my domain name properly ...
RansuDoragon's user avatar
0 votes
1 answer
1k views

Why is my mac's host file missing the fe80::1%lo0 localhost entry?

I searched all over the internet but cannot find any answers that make any sense to me. Can anyone please explain for less experienced users like me, why my mac's host file might be missing the fe80::...
Z Ixazaluoh's user avatar
0 votes
0 answers
53 views

What do just two IPs in hosts file without any domain name be indicative of?

A friend of mine was complaining about very slow internet on his Windows 7 laptop. Out of curiosity I just had a look at the 'hosts' file on his laptop and some entries therein surprised me. There ...
rajeev's user avatar
  • 1,646
0 votes
0 answers
763 views

Cannot open /private/etc/hosts file form terminal

Problem with /private/etc/hosts file I was trying some software (MAMP PRO) and it has problems writing to the /private/etc/hosts file (the software has admin rights). I thought it was the software ...
Marcos Di Paolo's user avatar
0 votes
0 answers
36 views

Can't access AppleId for weeks, sometimes returns to normal

I'm having a super annoying problem with access to my AppleID and connected services like iCloud and therefore all kind of sync jobs for iMessage, Notes and more. I'm under the impression that it is ...
Simon's user avatar
  • 101
0 votes
1 answer
521 views

Easiest way to switch between /etc/hosts mappings in a browser

I have a web application that connects with various services and the only way to develop it is to use exactly the same domain for development as for production. I do it by overriding the domain in /...
Maciej Kravchyk's user avatar
1 vote
1 answer
2k views

How do you delete highlighted characters in notepad++?

How do you delete highlighted characters in notepad++? For example, in the below image: How do I remove all of the highlighted 1's that are trailing each hosts file entry?
user920238189's user avatar
1 vote
1 answer
2k views

Unable to redirect a website by modifying etc/hosts file

I am trying to redirect a website by overriding its IP address in the hosts file. But it doesn't work. I have done the following so far: Modified hosts file by mapping the IP address of twitter.com ...
user2636662's user avatar
1 vote
2 answers
265 views

What is the significance of hosts file and is it used as a loophole/bypass restrictions?

I came across one question on SO which instructs the user to fiddle with the hosts file in order to bypass a "update check". The software in question is Sublime Text Editor and the OP is asking for a ...
asprin's user avatar
  • 765
0 votes
1 answer
631 views

Is it stupid to schedule a script to update 'hosts' file by coping contents from my online text file?

I'm using this site to upload a text file that I'll update occasionally. On another system, I'm planning to add a task in Task Scheduler to run a Python script that accesses this online text file, ...
user avatar
0 votes
2 answers
733 views

Block a specific page not the whole file from the host file

Is there a way to block a specific page not the whole website from the host file. For example: Instead of: 127.0.0.1 www.reddit.com I want to block only: 127.0.0.1 www.reddit.com/r/Futurology
Avtontom_'s user avatar
  • 125
0 votes
1 answer
128 views

How to use star notation in host file to block multiple websites?

Host file allows to block a site (games.com) Is there way to use host file to block multiple websites sharing a domain? Assume the user wants to block racing.games.com and chase.games.com and arcade....
user12363's user avatar
  • 357
2 votes
1 answer
3k views

Chrome 60 ignoring /etc/hosts

Since approximetly the last update, Chrome does not respect the /etc/hosts file anymore. It does, but only for domains not listed in any public nameserver. It respects devserver.local but it does not ...
Daniel W.'s user avatar
  • 1,972
2 votes
4 answers
23k views

Unable to log into Gmail - 'next' button does not work

Using Chrome I can go to gmail.com and log into my account no problem. (Update: I'm actually not sure of this. I've been logged into Gmail for a long time and don't want to log out to discover that I ...
Mark Cramer's user avatar
0 votes
0 answers
1k views

Can't delete any fonts because of Usermode Font Driver Host

I never had this host file interrupting me when uninstalling/deleting fonts, or even noticed this host file are even running on my PC before, but it's confirmed as Microsoft's not any just 3rd party, ...
PrinceKickster's user avatar
3 votes
0 answers
2k views

Hosts entry getting ignored when in vpn

I am using Mac and I added entry for myname.local in hosts file. But when I try to reach myname.local:8000 my browser is directly going to dns. I have verified that I have entry in bypass proxy for *....
jarus's user avatar
  • 31
1 vote
0 answers
214 views

What network will Windows 10 resolve hostname to?

So I have a Windows 10 professional computer connected to multiple networks, one is a router with internet access, and then multiple network cameras and other hardware. Le On the router there are two ...
fjafjan's user avatar
  • 11
4 votes
1 answer
10k views

Extend OpenWRT DNS with lines to resolve local IP

I have an OpenWRT router acting as an Wifi access point to a local network. No actual routing currently involved. The ip adress of the wlan0 interface on the router is statically set to 192.168.120.1. ...
TheMeaningfulEngineer's user avatar
2 votes
4 answers
12k views

Host file not redirecting

I've been playing around with my Windows 10 host file to get a better understanding of how it works and I've not been successful in redirecting an address yet. I'm trying to redirect yahoo.com or www....
visandres's user avatar
1 vote
2 answers
2k views

Is it possible to block images from a specific URL using the “hosts” file?

I want to block images in a website which is often unimportant ads uploaded to their server or host. Using inspect element I noticed the all these images was named with ad-[some number].jpg. I can’t ...
Omar mah's user avatar
1 vote
1 answer
9k views

Host file or DNS cache first in windows

When there is a DNS query, what do windows checks first - host file or DNS cache ? In linux I can change my preference using nsswitch.conf. Is there something similar in windows.
Siva Prakash's user avatar
18 votes
3 answers
7k views

Chrome Slow to Resolve /etc/hosts on macOS / OS X

Our developers use either Docker or VirtualBox (with Vagrant) to test their code locally (and the problem happens with both). To facilitate this, we modify /etc/hosts to point to the correct IP ...
mkasberg's user avatar
  • 2,603
0 votes
1 answer
112 views

Windows hosts file entry

I can access a default html page at '127.0.0.1' I've added an entry in Windows hosts file as 127.0.0.1 www.xyz.org xyz.org When I've opened the URL www.xyz.org in a browser I've got my html page. ...
Knight's user avatar
  • 103
0 votes
1 answer
6k views

Localhost ERR_CONNECTION_REFUSED

So I'm trying to load my localhost file. I am guilty of modifying my host file I was wondering if anyone could tell me if any of the following could be the issue. 127.0.0.1 localhost ::1 localhost ...
Gideon Sassoon's user avatar
0 votes
0 answers
268 views

Dynamic IP resolve to Hostname-CentOS

I'm trying o figure out a way to create a hostname that resolves to a dynamic IP? To clarify, in a OS such as CentOS there is a hostfile that stores the hostname (host.local) and a associated static ...
Benjamin Jones's user avatar
0 votes
0 answers
4k views

Hosts file being wiped daily

Until a few days ago, I had any server I connect to frequently in my hosts file. They're now getting frequently wiped. It would appear that a backup "hosts.bak" file is being created so not all is ...
Jamie Taylor's user avatar
  • 1,451
3 votes
1 answer
3k views

Why does Windows 10 seem to ignore the DNS query replied from my router?

I have an OpenWRT router. I have added few entries to the /etc/hosts file on the router, to block the users from accessing some of the websites. Recently, I have upgraded a computer to Windows 10, and ...
user1556811's user avatar
0 votes
1 answer
2k views

Conditional /etc/hosts file

I am trying to add conditions based on ip accessing to localhost on windows 10: /etc/hosts if (ip == '192.168.0.102') 127.0.0.1 www.site.co.uk site.co.uk else #127.0.0.1 www.site.co.uk site.co....
Adrian's user avatar
  • 153
0 votes
1 answer
46 views

either file permission or password?

I want to block some sites permanently without any 3rd party app. So far internet is not helpful in this, all available solutions can be undone easily. Is there any way I can add password to hosts ...
life-is-a-gift's user avatar
3 votes
7 answers
11k views

Why isn't /etc/hosts blocking domains after I add blocked sites via launchd?

I've been trying to setup Launchd to block several websites on osX 10.12.2 from 9AM - 3PM Monday-Friday I set up launchd to cp /etc/hosts_BLOCKED_sites.txt /etc/hosts Launchd seems to be copying the ...
BryanWheelock's user avatar
0 votes
1 answer
3k views

"Broadcasting" a hostname to a network

When I nmap my home network (here on a portion of the subnet), I see the following: Nmap scan report for 192.168.0.aaa Host is up (0.00027s latency). Not shown: 999 closed ports PORT STATE SERVICE ...
Bradley Evans's user avatar
1 vote
0 answers
1k views

How can I allow a localhost SSL cert when using localhost to redirect a domain?

At the moment I have in my hosts file a custom link for facebook.com which leads to 127.0.0.1. I wanted this so when I go to facebook.com, it runs a php script on localhost which redirects to ...
Sasha's user avatar
  • 111
0 votes
1 answer
35 views

Disabled host file entry not loading

I have deleted an entry from my computer hosts file. So the website SHOULD be accessible BUT it is still not accessible. I check my router URL filtering feature but there are no entries in the URL ...
thomas's user avatar
  • 1
1 vote
3 answers
13k views

Windows 10 changes to hosts file ignored

I modified the Windows hosts file under C:\Windows\System32\drivers\etc. I added the line xxx.yyy.xxx.18 jira.example.com but the entry is simple ignored.. I also tried deactivating the Virus ...
nobs's user avatar
  • 143
0 votes
1 answer
263 views

Safe to change ownership of /etc/hosts?

I use Vagrant and the plugin hostupdater to add an entry to my mac's host file. The entry is only added when Vagrant runs, it's deleted when Vagrant is stopped. In order to get the plugin to work, I ...
Gregory Schultz's user avatar
1 vote
1 answer
655 views

Thunderbird doesn't seem to recognize changes in hosts file

I want to use Thunderbird (or another software if that's more possible) to access some email that's on a shared hosting server that we pointed our domain away from. I've managed to get the IP of our ...
J Garcia's user avatar
  • 111
0 votes
0 answers
97 views

Changes in symlinked hosts file need restart to be effective in Windows 10

On my Windows computer, I have started using symlink for the hosts file and placed the original file somewhere else. Everything is working fine, except if I change something to the original file, it ...
Kerry's user avatar
  • 11
1 vote
2 answers
3k views

How to add hosts to Windows 10

I have been trying to add a host to my Windows 10 laptop. I found sites like: https://support.rackspace.com/how-to/modify-your-hosts-file/ and http://www.howtogeek.com/howto/27350/beginner-geek-how-to-...
Thom's user avatar
  • 367
3 votes
3 answers
4k views

Does microsoft prevent hosts file redirection for its websites?

This is not a duplicate of How come hosts file redirection fails? Every morning, after logging into my office wifi, I am redirected to msn.com, a "news" site that I do not much care for. I decided I'...
eclipz905's user avatar
  • 223
0 votes
1 answer
46 views

Apache webserver on Windows 7 to closed network

I am trying to serve an Apache webserver, installed on my Windows 7 computer, to everyone on our closed network. The websites run fine when I test them locally, using http://localhost/, but when I try ...
Warwick's user avatar
  • 133
1 vote
0 answers
236 views

Hosts File Ignored but ping working well

I recently changed the hosts file on a Mac and also a Windows 10 computer. Both computers are used at home and at work. My hosts file was supposed to redirect on specific url (abc.com) to a ...
F_BKK's user avatar
  • 11
0 votes
0 answers
96 views

Identical host file entry works in Windows 7 but not in Windows 8.1

If I add an entry to a Windows 7 hosts file then it works. If I add the same entry to a windows 8.1 hosts file then it doesn't work. It is for a web site and this is the only way to have access to it. ...
gyozo kudor's user avatar
0 votes
1 answer
50 views

Rewrite hostname on OS X

I'm trying to rewrite a hostname using the hosts-file in OS X using the hosts-file and the following entry localhost db meaning that when i access http://db/ it should in reality access http://...
Mads K's user avatar
  • 101
4 votes
1 answer
1k views

Stop zsh incorporating /etc/hosts in autocomplete

I added loads of entries to my /etc/hosts file to aid in adblocking and tracking on the internet (a list I got from github https://github.com/StevenBlack/hosts). However, zsh now incorporates all the ...
thosphor's user avatar
  • 141
4 votes
2 answers
259 views

Blocking stackexchange

I want to block every website on the stackexchange network (as I often tend to waste a lot of time on those). How can I do it? One solution is to obviously write all the sites' entries manually in ...
Anmol Singh Jaggi's user avatar
0 votes
1 answer
660 views

Host file hijack

I wanted to add an entry into my host file so I opened the directory and Hosts Networks Protocol Services All files except the Imhosts.sam file are messed up. all 4 of those files when double ...
Paradox's user avatar
2 votes
3 answers
9k views

Host file is open in another process

I am trying to edit my host file under C:\Windows\System32\drivers\etc But I keep getting the message The process cannot access the file because it is being used by another process. My PC has been ...
CopperRabbit's user avatar
2 votes
1 answer
3k views

how to block connection to a domain in firefox

i need to utterly block a domain from even being connected to. obviously, addons wont work, since those only check the URL of the site the browser is navigating to, not domains the browser is ...
Kovács János's user avatar
1 vote
1 answer
2k views

Confusion regarding DNS query vs HOSTS file

With the subject, I have windows/linux machine and In which installed virtualbox and setup 192.168.11.19 ip and entry www.abc.com in hosts file. We have setup DNS server/filter on network and setup ...
Nullpointer's user avatar
1 vote
0 answers
5k 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 ...
D.chan's user avatar
  • 87

1 2
3
4 5
8