Questions tagged [hosts]

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.

384 questions
1057
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,708
  • 3
  • 16
  • 6
271
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,090
  • 17
  • 59
  • 84
166
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,531
  • 11
  • 39
  • 51
87
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,255
  • 10
  • 31
  • 33
42
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…
David Faux
  • 4,789
  • 25
  • 55
  • 71
37
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,054
  • 4
  • 13
  • 22
28
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.
  • 631
  • 1
  • 8
  • 16
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
  • 138
  • 2
  • 11
  • 20
27
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
  • 373
  • 1
  • 3
  • 6
23
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,147
  • 3
  • 12
  • 21
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
  • 726
  • 1
  • 7
  • 16
15
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
  • 581
  • 3
  • 8
  • 18
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
  • 1
  • 2
  • 8
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,789
  • 25
  • 55
  • 71
12
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
  • 267
  • 1
  • 9
1
2 3
25 26