host is any machine or computer connected to a network and can offer information, resources, services and applications to users or other nodes in the network.
Questions tagged [hosts]
381 questions
1041
votes
17 answers
How to clear/flush the DNS cache in Google Chrome?
As you probably know Google Chrome has its own internal DNS cache. Is there a way to clear it without having to wait for the time out or close the browser?

Mee
- 10,548
- 3
- 15
- 6
233
votes
11 answers
Remove key from known_hosts
I built several virtual machines during the last few weeks. The problem is, the .ssh/known_hosts gives me the Man in the middle warning. This happens because another fingerprint is associated with the virtual machine IP.
In the .ssh/known_hosts…

Adam Matan
- 7,570
- 16
- 58
- 82
154
votes
7 answers
Don't add hostkey to known_hosts for SSH
I want to connect to a host via SSH but I don't want the hostname to be added to my ~/.ssh/known_hosts.
How can I do that?

Albert
- 6,153
- 10
- 36
- 49
84
votes
6 answers
Using wildcards in names in Windows hosts file
Is there a way to create a wildcard domain in the Windows hosts file.
I tried this
xxx.xxx.xxx.xxx *.somedomain.com
This does not work, is there maybe some other syntax I should use?
I am working on Windows 7

Saif Bechan
- 3,215
- 10
- 30
- 32
39
votes
1 answer
What's the Windows equivalent of "/etc/hosts"?
Possible Duplicate:
How do I block certain websites from being accessed through a browser?
I can block my little brother from accessing a website on my Mac by adding the following line to my "/etc/hosts" file.
127.0.0.1…

David Faux
- 4,699
- 25
- 54
- 71
36
votes
1 answer
How to alias a hostname on Mac OSX
In a nutshell, I would like to be able to open a browser and open local.example.com but it actually loads http://localhost/path/to/example.com/
I am using Mac OSX 10.5, and not afraid to get my hands dirty with the terminal :)
I use Apache as my…

Austin Hyde
- 1,024
- 4
- 13
- 22
26
votes
8 answers
OSX Sierra hosts file is ignored
For some reason, two days ago my hosts file started being ignored.
I'm using Mac with Sierra OSx .
This is the current content of the /etc/hosts file
##
##
# Host Database
#
# localhost is used to configure the loopback interface
# when the system…

T1000
- 363
- 1
- 3
- 6
25
votes
2 answers
How do you add an IP address/hostname pair to the host file in Windows 7?
Our network IT people hate us, so our IP addresses are not entered into the DNS lookup automatically if we run a non-Windows OS. How do I get my Windows 7 machine to find the non-Windows OS machine by using the hostname?
In Windows XP, I added the…

Jay R.
- 601
- 1
- 8
- 16
24
votes
4 answers
Adding a line into the hosts file, getting permission denied when using sudo - Mac
I'm trying to add a line into the hosts file on my Mac by executing a one line command on the terminal.
I thought this would be easy using sudo, but it returns "permission denied" when I try to add >> to the hosts file, but it works if I try replace…

Mint
- 78
- 2
- 10
- 20
22
votes
3 answers
Remove ads in Viber for PC
How do I disable ads in Viber for PC - version 11.4 (2019). The hosts file trick no longer works (the following one):
127.0.0.1 ads.viber.com
127.0.0.1 ads.aws.viber.com
127.0.0.1 ads-d.viber.com
Viber offers no option to disable (paid) ads and…

Coder12345
- 716
- 1
- 7
- 15
19
votes
7 answers
Does Firefox ignore the hosts file? How to make Firefox honor the hosts file
I'm using Firefox browser in Ubuntu 18.04. I made an experiment where I want some domain names to be resolved to another IP address than their actual one. Firefox seems to ignore the IP in the hosts file.
1) Is this expected behavior from Firefox?…

user9371654
- 1,077
- 3
- 11
- 21
14
votes
3 answers
Windows hosts: how can I redirect HTTPS site?
I have the following in my C:\Windows\System32\drivers\etc\hosts:
127.0.0.1 example.com
It works when I use: http://example.com
But does not work when I use: https://example.com, which gives error ERR_CONNECTION_REFUSED.
Any idea how to use hosts…

yarek
- 521
- 3
- 7
- 18
14
votes
2 answers
windows 10 hosts file entries been commented out
Windows 10 is commenting out my hosts file entries. This happens periodically so every 1 hour.
Although I manage to save the changes but they will be commented out after around 1 hour.
I never experienced such thing on any Windows version before so…

Sul Aga
- 243
- 1
- 2
- 8
13
votes
2 answers
What does this entry in hosts-file mean: 192.168.3.2 NPI2A54EA
I took over a Windows 7 PC from a developer and in the hosts file there was this entry:
192.168.3.2 NPI2A54EB
Does anybody know why this would be entered there and if this could be a virus or would that be related to the developer's work (I can…

ManOnAMission
- 277
- 1
- 9
13
votes
3 answers
How come hosts file redirection fails?
I am trying to redirect google.com to my local machine for fun and learning with this /etc/hosts file on my Mac.
127.0.0.1 www.google.com
However, www.google.com still maps to the Google home page when I visit it in Chrome on my Mac.…

David Faux
- 4,699
- 25
- 54
- 71