Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

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.

1
vote
1answer
23 views

What does every localhost-like record in Steven Black's hosts files mean and how does it make sense to be included?

Steven Black's unified hosts file with base extensions includes the following block in the beginning: 127.0.0.1 localhost 127.0.0.1 localhost.localdomain 127.0.0.1 local 255.255.255.255 broadcasthost ...
0
votes
1answer
11 views

PHP version different on server then the one set in vhost

So I have an odd problem. I followed this tutorial https://tecadmin.net/install-multiple-php-version-apache-ubuntu/ to install multiple versions of PHP on my local server. On most sites it works, ...
0
votes
1answer
41 views

resolve one host differently on windows server session

I want to temporarily (=resets after disconnect) resolve a host differently for (only) my connected session (via RDP) on a windows server machine. Can this be done? Something like a termporary hosts-...
0
votes
1answer
39 views

Autocomplete host names in Windows CMD

WSL Bash thing does it, for example, when using ping : But CMD can not do it. Is there a way to achieve that? Note: I know about clink, but it does not provide hosts file auto-completion, which is ...
0
votes
0answers
8 views

Is there a way to map a Chrome special URL such as chrome-extension:// to a valid HTTP url?

I am trying to apply a distraction-free approach to Chrome extensions (not definitive, but just for certain focus slots). I could use an extension such as blocksite.co but it works only valid URLS (i....
0
votes
0answers
74 views

Hosts file changes don't apply for TCP connections

A program on my windows PC makes a TCP connection to a IP address e.g. 122.122.122.122 I have made a TCP server on my local machine and made the following change in my hosts file 192.168.1.123 ...
0
votes
0answers
57 views

DNS service crashing in Windows 10 with large HOSTS file

I don't get why my Android device handles a large hosts file just fine, but if I try to use a similarly-sized file in Windows 10, the DNS Service starts using a massive amount of CPU and slows ...
0
votes
1answer
40 views

.dev domains don't resolve

I noticed today that no .dev domains will resolve in any browser on my MacBook while trying to access web.dev; they all say “__.dev refused to connect.” I did a quick google search for site:.dev, and ...
0
votes
1answer
49 views

host process for windows cpu 40-50% when used with hosts file

I can't run dnsclient because host process for windows cpu 40-50% when used with hosts file, my laptop works fine with an empty hosts file and when it is disabled, but I want to run it with a hosts ...
0
votes
0answers
17 views

Block a specific url in HOSTS file [duplicate]

I can block a website by editing the file hosts located in C:\Windows\System32\drivers\etcWindows 8.1 and adding 127.0.0.1 example.com at the end. But I cannot figure out that how can I block a ...
0
votes
0answers
33 views

Skyfonts messing up hostname

i installed Skyfonts on Windows10, and the stupid thing is overriding the local hostname. it does not matter what i enter in my hosts file, 127.0.0.1 will always resolve to local.skyfonts.com. even ...
-5
votes
1answer
219 views

How do I block domains using the hosts file on Windows?

I used to block domains on Windows using the hosts file like the following: 127.0.0.1 www.cnn.com However, now it is not working and the domains are resolving. $ nslookup www.cnn.com Non-...
0
votes
0answers
57 views

Is it possible to block a domain on linux without superuser access?

The easiest way I know to block a domain is to go add something like this to my /etc/hosts file: 127.0.0.1 facebook.com Boom, done. But I have to be a superuser. Which is a bit annoying, because ...
1
vote
1answer
283 views

Fake “.dev” domain added to hosts file for development purposes redirects to HTTPS in Chrome on Windows even when local dev server is not active

I am building an Express.js app locally. In order to test this in something other than localhost, I added the following entry to my hosts file: 127.0.0.1 mynewapp.dev Without even starting the ...
1
vote
1answer
159 views

Part wildcard in hosts subdomain possible?

On our server we've got a lot of redirects for specific subdomains, which always end in the same: 127.0.0.1 abc-thesame.domain.com 127.0.0.1 def-thesame.domain.com 127.0.0.1 xyz-thesame....

15 30 50 per page
 Microsoft office activator |  windows activation crack |  windows product key |  windows 10 product key |  windows 7 ultimate product key |  windows 7 keygen |  activate office 2010 |  office Project keys |  project professional product key |  office 365 office 2016 office 2013 key |  office 2016 office 2013 key |  windows 7 professional product key |  windows 8 professional product key |  windows 10 professional product key |  office 2016 professional product key |