48 votes

Remove key from known_hosts

You need to run the following command to get rid of this problem. Open the terminal and type the following command: For all examples below just replace the value after -R: ssh-keygen -R server-name ...
Tarun Gupta's user avatar
39 votes

windows 10 hosts file entries been commented out

To prevent the hosts entries from being commented out by Bitdefender 2016 do the following: In the main Bitdefender interface click on the human icon (from the upper right corner) and choose General ...
oussaka's user avatar
  • 491
31 votes

Remove key from known_hosts

All answers are good, but for real SSH pro we have missing information how to remove ssh signature with (non-standard) port number. Simple SSH host signature remove command: ssh-keygen -R example....
Arunas Bart's user avatar
  • 1,570
26 votes
Accepted

Remove ads in Viber for PC

I put also these two into my "c:\Windows\System32\Drivers\etc\hosts" file: (for mac the file location is: "/private/etc/hosts"), however, as others may suggest, later on new ad sites filtering might ...
Zoltán Kurgya's user avatar
19 votes

OSX Sierra hosts file is ignored

Look at System Preferences -> Network If the currently active "Location" has one or more DNS servers listed then the system will create the file "/etc/resolv.conf" which will list those nameservers ...
BenL's user avatar
  • 191
17 votes

Does Firefox ignore the hosts file? How to make Firefox honor the hosts file

I had the same problem. Write about:config in the address bar. Search for dns and change network.dns.offline-local to false.
F.Rahamim's user avatar
  • 332
13 votes
Accepted

OSX Sierra hosts file is ignored

The file might be corrupted/damaged, it has to be an ASCII file. You should recreate it: move the old file with mv -f /etc/hosts /etc/oldhosts create a new file with nano populate it with the values ...
13dimitar's user avatar
  • 819
12 votes

Can a host file DNS entry point to multiple Ip addresses?

Mostly dupe How to add multiple IPv6 address for single host in /etc/hosts? as auto-suggested by Stack. Can a hostfile entry point to multiple addresses? NO Can a hostfile have a hostname pointed to ...
dave_thompson_085's user avatar
10 votes

Does Firefox ignore the hosts file? How to make Firefox honor the hosts file

I fixed it by disabling the "DNS Over HTTPS" Firefox Network option.
Erpallo's user avatar
  • 119
9 votes

Remove ads in Viber for PC

127.0.0.1 images.taboola.com 127.0.0.1 api.taboola.com Do the job. First for kill image. Second for kill load ads data from this ads network. But if viber switch to other ads network, this solution ...
Enyby's user avatar
  • 191
7 votes

How to clear/flush the DNS cache in Google Chrome?

5 years later... Chrome now has an option to disable cache. Press F12 (or Ctrl+Shift+I) to call up the DevTools. Go to Network Tab Check the "Disable Cache" box. Reload the page Right-click ...
Bojan Hrnkas's user avatar
  • 2,898
7 votes

Remove ads in Viber for PC

After my investigation, here are my hosts items: 127.0.0.1 ads.viber.com 127.0.0.1 ads.aws.viber.com 127.0.0.1 ads-d.viber.com 127.0.0.1 s-bid.rmp.rakuten.com 127.0.0.1 s-imp.rmp.rakuten.com 127.0.0....
steve's user avatar
  • 71
6 votes

Is there a utility to ping a server using aliases in ssh config (instead of /etc/hosts)?

I wrote a small shell function that does exactly that and can be placed e.g. in your .bashrc. It replaces ping and does the lookup of the last argument (host) in .ssh/config before calling the ...
Andrzej Pronobis's user avatar
6 votes

Trying to grep the output of fs_usage with poor results

I have also encountered same problem today and after some trail and error, I got it working without restarting the mac. Try to find the pid of all the processes with name fs_usage and kill it. $ ps -...
SkrewEverything's user avatar
4 votes

Why I need to modify "etc\hosts" to be able to open the website?

No the hosts file does not do anything extra - it simply allows you to resolve the DNS query for xyz.abc.com right on your computer instead of sending it to the appropriate authoritative DNS server. ...
Marek Rost's user avatar
  • 2,076
4 votes
Accepted

Add hosts entry with HTTPS capabilities

The hosts file is for domain name resolution, which is a process that takes domain names and converts them to IPs. I have modified my Windows 10's hosts file to add an entry for a URL to lead to a ...
LawrenceC's user avatar
  • 74k
4 votes
Accepted

trying to add a new entry in windows 10 hosts file

Should I be able to do this? No. Host files do not contain port numbers. The hosts file contains lines of text consisting of an IP address in the first text field followed by one or more host names. ...
DavidPostill's user avatar
  • 157k
3 votes

sshd does not recognise "AllowUsers user@host" statements

This question is more than a year old, but UseDNS yes should fix it for you, as it just did for me. You say you tried UseDNS no, but that is the default anyway, so that changes nothing. The UseDNS ...
wheelcritter's user avatar
3 votes

http://localhost:3000 works, but http://127.0.0.1:3000 doesn't

TLDL; make sure with sudo lsof -i tcp:<port> that there is no other process running on the same port. (sudo if necessary) kill -9 it if there is. I just had this problem and the other answer ...
Nick Brady's user avatar
3 votes

Adding a line into the hosts file, getting permission denied when using sudo - Mac

Works also well from a script: sudo /bin/sh -c 'echo "127.0.0.1 mydomain" >> /etc/hosts'
NVRM's user avatar
  • 281
3 votes

DNS lookup fails but nslookup works

Sometimes mDNSResolver stops when connecting with VPN. Just restart the mDNSResolver: sudo killall -HUP mDNSResponder
Flavio Lacerda's user avatar
3 votes

OSX Sierra hosts file is ignored

This is an old thread for sure but I was facing the same problem today and I found the solution. Leaving this here in case someone else needs it. sudo dscacheutil -flushcache Flushing the DNS cache ...
rahulsoibam's user avatar
3 votes
Accepted

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? Short answer: No Longer answer: A host file is a text file that contains lines of text consisting of an IP address ...
DavidPostill's user avatar
  • 157k
3 votes

Why does the hosts file in Windows 10 no longer block YouTube?

I also encountered the same issue, but I found that the browser accesses youtube via the cached ip address. So, the easy solution was to remove the cache data from the browser and try accessing ...
Bishal Bhandari's user avatar
3 votes

Does Firefox ignore the hosts file? How to make Firefox honor the hosts file

All of the high-scoring answers here are not fine-grained. You can bypass individual domains with Trusted Recursive Resolver exceptions using the network.trr.excluded-domains setting in about:config. ...
tombh's user avatar
  • 131
3 votes
Accepted

Adding 127.0.0.1 to hosts file to redirect locally error. Says my site "refused to connect."

Since early 2018 both Chrome and Firefox browsers (presumably Edge as well) force all domains ending on .dev (and .foo) to be redirected to HTTPS via a preloaded HTTP Strict Transport Security (HSTS) ...
suspectus's user avatar
  • 4,855
3 votes

VirtualBox host-only network, cannot ping host from guest

I had the same setup - a Windows host with an Ubuntu VM on it. And the same problem. I could ping the guest from the host, but not the other way around. I was using a bridged adapter in the VM ...
BuvinJ's user avatar
  • 271
3 votes
Accepted

Discrepancy when calculating hosts

You're right about 2^7 being the lowest power of 2 that is at least 100. You're also right about the need to use up 7 bits for the IP netmask. The 16-bit mask in this exercise is the upper-limit, ...
harrymc's user avatar
  • 481k
2 votes

Remove key from known_hosts

Here is a method using Ex editor: ex +6d -scwq ~/.ssh/known_hosts where 6th is your line number mentioned in the warning message. Such as this one: Offending key for IP in /home/user/.ssh/...
kenorb's user avatar
  • 25.5k
2 votes

How to clear/flush the DNS cache in Google Chrome?

On Mac OS X, none of the above mentioned approaches worked for me. The following approach did: Click Chrome menu > preferences > click the link show advanced settings in the bottom of the page > ...
Javad's user avatar
  • 131

Only top scored, non community-wiki answers of a minimum length are eligible