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.

Filter by
Sorted by
Tagged with
0 votes
1 answer
2k views

How to use hosts entries inside a router?

I use manual entries inside /etc/hosts to map some hosts like mytestapp.local to local machine 127.0.0.1 for development purpose. Now, as I want to access the webapps I work on from mobile devices by ...
1 vote
2 answers
4k views

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

I'm on Windows 10 using Chrome, Firefox and MS Edge. I'm trying to do something for a class I'm taking and can't get it to work. All I want to do is add something like this to the hosts file: 127.0.0....
0 votes
1 answer
17 views

How to change /etc/hosts make it can visit multi folder under /var/www/html

I have a local centos pc , I use it as my online wordpress 's backup , mean it also have a wordpress site which can only visit from local . here is my current /etc/hosts 127.0.0.1 localhost ...
2 votes
3 answers
4k views

How do I use wildcards to redirect/block domains on OS X?

I have tried dnsmasq, squid and this dns proxy, however, none of them does what I want. I want to do something like this: 127.0.0.1 *facebook.com 127.0.0.1 *imgur.com Where every URL matched is ...
0 votes
0 answers
57 views

Able to SSH localhost, but other computers can't be hosted on it

I am trying to get access to a certain computer (A) via SSH, but I am unable to. On the "certain computer" (A) I am able to SSH localhost itself, but other computers cannot use the SSH (IP) to ...
0 votes
0 answers
2k views

Windows 10 Home WiFi 'Destination Host Unreachable' when site IP starts with anything above 200

First of all I AM NOT A PROFESSIONAL - one would say a bit more experienced newbie girl, so please bear with me, though I have some knowledge that enables me at least testing + english is not my ...
0 votes
1 answer
28 views

hosts file rebuild after a while

I got a strange problem with my hosts file on windows machine. I save it with some default ip's - hostnames and after some time I notice again that some of the hosts have again tagged with the # ...
0 votes
0 answers
602 views

Running Office 2003-2016 on Windows Server 2016

We have a small server farm which uses Windows Server Remote Desktop Services with remote sessions hosts and not remote virtualization hosts. With virtualization hosts you are able to install Office ...
-1 votes
1 answer
315 views

How can one let the emulator in Android Studio work faster?

I am trying to build a simple app in Android Studio. Unfortunately every time when I am trying to run it I get the message "System UI isn't responding" and the emulator works really slowly. I've read ...
4 votes
1 answer
7k views

Chrome on Windows not honoring hosts file, yet other browsers do

What is happening I have a simple Apache server set up on my machine, accessible via localhost on port 80. When accessing the following addresses : http://localhost/ http://[::1]/ It does work on ...
5 votes
1 answer
30k views

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

Can a host file DNS entry point to multiple Ip addresses ? basically i want have to ad servers , but no balancer due to port issues , the solution i think is host file entry ,but can one dns point ...
1 vote
1 answer
41 views

Can /etc/hosts values be used while still (rapidly) falling back to their DNS values?

I have a server hosted on my home network. Normally, I would access this from its DNS value (e.g. example.com.) However, my ISP has an awkward setup wherein I cannot access my home network's external ...
2 votes
2 answers
4k views

Cygwin netcat nc doesn't resolve hosts through /etc/hosts

I'm trying to use ssh to log into remote servers, and I have a ProxyCommand setup in ~/.ssh/config to use a proxy (setup through PuTTY to connect to a VPN). The ProxyCommand uses nc to connect ...
3 votes
1 answer
4k views

Block mobile.twitter.com using etc/hosts

I'd like to block the webpage mobile.twitter.com using etc/hosts. Using this code, I can block many websites including twitter.com, but mobile.twitter.com works normally 127.0.0.1 www.twitter.com 127....
1 vote
1 answer
9k views

Apache couldn't be started because port 8888 is in use by some other software

I am having an issue starting up MAMP, when I attemp it, I get this error message: Apache couldn't be started because port 8888 is in use by some other software I have been trying for the last 2 ...
0 votes
1 answer
76 views

Concurrently block a web site on some browsers but not others

I need the ability to block a particular web site, in this case youtube.com, on selected browsers or browser instances, but not block it on others. For example, suppose I have different browsers or ...
1 vote
0 answers
687 views

/etc/hosts Cannot point hostname to new ip

Under Linux, the /etc/hosts file can be used to override DNS definitions, i.e. to point a hostname to a different IP. I need to test a new VPS. So I added a line in the /etc/hosts file: 123.123.123....
0 votes
2 answers
955 views

WSManCredSSP setting cannot be enabled

Im trying to set up 2 Hyperv 2016 Server hosts on my local network for remote access, but I just cant get them going. Servers are configured properly - both running: PSRemoting (also tried -...
2 votes
5 answers
21k views

How do I refresh and clear all entries in hosts file on Windows Vista and 7?

A website is not opening on my PC which was accessible a week ago. I don't know how to delete the wrong entries in the hosts files. Is it possible to clear all the entries in the hosts file? I'm ...
1 vote
2 answers
5k views

Is the hosts file ignored in windows if DNS Client service is running?

I've seen a number of articles about how to edit the hosts file in Windows 7, but it's all about how to open notepad as administrator, not the actual behavior of the dns lookups afterward. I've read ...
0 votes
1 answer
1k views

Firefox DNS resolution order

Do you know what is the DNS resolution process order of domain names in Firefox? Has the hosts file proprity over DNS server? Has the hosts file proprity over mDNS names in the network or mDNS is ...
0 votes
1 answer
68 views

Is there any possibilities to access the host name which is added in other system host file?

I have added the new host name(www.example.com) and IP in host file at my system.I can access the website. Question is, Can access the same host name(www.example.com) in other system? Is there any ...
3 votes
1 answer
2k views

sshd does not recognise "AllowUsers user@host" statements

I recently installed Fedora-25, and I am having a problem with my /etc/ssh/sshd_config. I am trying to configure it with a statement like: AllowUsers user@host I cannot connect via ssh to the ...
15 votes
2 answers
24k views

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 ...
0 votes
1 answer
448 views

Adding ShortHostName to hostname file, and ShortHostName.DOMAIN to hosts file in Docker container

When I use docker run --it --name myContainer --hostname myShortHostName ubuntu bash That will add myShortHostName to /etc/hostname file. And 172.169.X.X myShortHostName in /etc/hosts file. but in ...
5 votes
4 answers
2k views

Windows 7 HOSTS files keeps reverting it's permission back to READ-ONLY

As a full-time Web Developer I am constantly adding fake domains to my Windows 7 HOSTS file to point a domain to my localhost web server that I develop on. I have even built a nice little PHP script ...
-1 votes
1 answer
320 views

The wamp server vhosts address go to google search page

my vhosts file : <VirtualHost *:80> ServerName localhost ServerAlias localhost DocumentRoot "C:/wamp64/www/" <Directory "C:/wamp64/www/"> Options +Indexes +Includes +...
-1 votes
1 answer
1k views

How to resolve host names under a wifi router?

Is it possible to resolve host names by using a DNS server that resides behind the router and has a local IP? I was able to manage this by modifying the hosts file under Windows/System32 My aim is to ...
-2 votes
2 answers
82 views

How do I guarantee my browsers in Windows are using a DNS server to resolve web addresses?

I added a random entry to my hosts file to test custom hosts entries. I added this: 31.13.66.36 www.gribble.com Without restarting Chrome, I navigated to www.girbble.com and found that I went to ...
0 votes
1 answer
2k views

How to setup new host name (IP address) and port number in xubuntu 16.04 to connecct to wifi internet?

I explain my situation: I downloaded from google play store NetShare app to make my smartphone as WiFi extender, it works with no problems, BUT I need to change the host name (IP address) and port ...
0 votes
1 answer
164 views

View website traffic using a free service [closed]

I have a academic website whose host belongs to my university. My domain is something like this: http://myuniversity.edu/~myusername/. I want to view the website traffic using a free service. ...
-1 votes
1 answer
2k views

block websites on windows while maintaining access to admin and super-admin rights

The motivation is to block myself from accessing certain distracting websites while still being able to add/remove programs, change settings etc. Can the built-in parental controls deliver this ...
3 votes
2 answers
12k views

Pinging website returns 127.0.0.1

I have a website that cannot be loaded when browsing, so I pinged that website, it shows a reply from 127.0.0.1 (In a normal situation it will show our local IP address or proxy) I checked the hosts ...
0 votes
2 answers
379 views

Modifying .profile for SSH rules

I wish to create the following script in .profile, so each SSH session would go directly into its place: Check the specified host (user@host). If host = host1 -- cd /var/www/site1 etc. Help! :)
0 votes
2 answers
734 views

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. For example: Instead of: 127.0.0.1 www.reddit.com I want to block only: 127.0.0.1 www.reddit.com/r/Futurology
5 votes
2 answers
1k views

Can one make a Macbook behave like a USB-Drive

Is there a Way to emulate an usb-drive with a Macbook? I do not mean to emulate usb drives on my macbook! I would like to plug a double usb cable to my macbook and e.g. my TV. I want the TV to think ...
5 votes
2 answers
1k views

In your ssh config is it possible to have one host entry for multiple machines on the same domain

I'd like to be able to do something like Host * HostName *.mydomain.com ... So I can type something like ssh test ssh ci ssh dev Instead of having to type ssh test.mydomain.com ssh ci....
0 votes
1 answer
328 views

How to restrict program to connect only to a whitelist of hosts?

I want to restrict some program to be allowed to connect only to a whitelist of hosts. What it the simplest way to achieve this? OS: Windows 7
0 votes
1 answer
456 views

Host's File Permissions in Solaris

On a Solaris 10 server I am trying to edit the hosts file but it's preventing me from doing so saying it's read only. I am logged in as the root user. When I ls -l on the /etc directory I see the ...
0 votes
1 answer
742 views

SSH Config Not Working As Expected

I normally connect to a seedbox like so: ssh -D 20000 <user>@<host> It then prompts me for a password: <user>@<host>'s password: Pretty standard stuff. So I set my ~/.ssh/...
11 votes
3 answers
5k views

Mac OS X "hosts" file, can I include other files with it?

I am working on some automation scripts to configure my network settings, hosts file contents, and /etc/resolver files, when accessing different networks I frequent between. There are some ...
1 vote
3 answers
4k views

How big of a security risk is changing the permissions on my hosts file? [closed]

I regularly change the file because I add different subdomains to localhost when building websites locally. To get around the hassle of having to go through elevated UAC every time I thought I might ...
2 votes
1 answer
2k views

Why won't Windows hosts file block websites?

I'm trying to block a website because someone keeps downloading crap from this website and it's spyware. I tell them it's spyware and they download it anyway. So I'm trying to block it via the hosts ...
13 votes
3 answers
22k views

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 ...
0 votes
0 answers
1k views

Mapping a local domain to http://localhost:<port_number>

I have a /etc/hosts file with the two following lines: 127.0.0.2 myapp.dev 127.0.0.3 api.myapp.dev and this works fine. When I ping myapp.dev it maps to 127.0.0.2 and when I ping api.myapp.dev ...
2 votes
1 answer
14k views

Can't block connections to google via HOSTS file

Steam and Spotify connects to "clients.l.google.com" (172.217.21.206) using 5 to 100 kb. It might be analytics. I blocked google.com, www.google.com, clients.l.google.com via hosts file, somehow it ...
1 vote
0 answers
578 views

Vagrant on Mac os and hosts file issue

Editing file /etc/hosts ## # Host Database # # localhost is used to configure the loopback interface # when the system is booting. Do not change this entry. ## 127.0.0.1 ...
13 votes
1 answer
45k views

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 <...
1 vote
0 answers
39 views

Google JS not loading

I'm having an issue with a computer, for some reason it won't display correctly some Google products (Google Fonts Webpage, Google REcaptcha, Google Map overlay tools, Google account button dropbox no ...
0 votes
0 answers
270 views

Dynamic IP resolve to Hostname-CentOS

I'm trying o figure out a way to create a hostname that resolves to a dynamic IP? To clarify, in a OS such as CentOS there is a hostfile that stores the hostname (host.local) and a associated static ...

1 2
3
4 5
8