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]
397 questions
1079
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,928
333
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
- 8,880
181
votes
9 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,989
- 11
- 43
- 53
92
votes
5 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,345
81
votes
16 answers
Google Chrome Ignoring Hosts File
Google Chrome is ignoring the settings in C:/Windows/System32/drivers/etc/hosts file. Both IE11 and Firefox are installed on the same machine and work as expected. I've tried all the solutions I could find online including: Open…
Nick Petrie
- 919
46
votes
1 answer
What's the Windows equivalent of "/etc/hosts"?
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 someaddictingwebsite.com Do Windows systems have a file analogous to "/etc/hosts"? Can I achieve the same effect on a PC?
David Faux
- 4,939
42
votes
2 answers
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,144
30
votes
9 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,317
29
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.
- 641
29
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
- 393
27
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
- 168
26
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
- 766
16
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
- 701
15
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
- 253
13
votes
1 answer
How to change IP address to point to localhost?
A sandbox enviroment of a web app is reachable directly by an IP address: http://<my_ip_address> without a login name. Is there a way to make a virtual host in my local machine, named as <my_ip_address> , and change /etc/hosts so it will "redirect"…
Michele
- 253