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.

learn more… | top users | synonyms (1)

2
votes
1answer
261 views

How can I prevent users from circumventing the Windows hosts file?

I realized Windows hosts entries can easiliy be circumvented by just setting a system proxy or use a webproxy like hide my ass. How can prevent my kids from circumventing my hosts file that blocks ...
2
votes
1answer
6k views

How can I map multiple hostnames to localhost?

I'm testing an application on my PC, this application connects to various servers so I need to mimic that on my box. How can I map hostnames to 127.0.0.1? localhost already refers to 127.0.0.1, but ...
2
votes
3answers
5k views

ssh - no route to host

I have 3 machines (A, B and C) behind WLAN Router. From B i can make ssh to A and from A to B also. Ssh between C and A is also working (both destination, C->A and A->C). But when i try to connect B ...
2
votes
2answers
23k views

changing hosts file on snow leopard

I need to add an entry to my hosts file on Snow Leopard. I could edit the hosts file with root user enabled, but in the system doesn't let me to save this file saying that I don't have permissions to ...
2
votes
5answers
1k views

Blocking a game on XP with the hosts file

In the Windows XP hosts file (C:\windows\drivers\etc\hosts) replaces the mnemonic format with an ip address locally before talking to the dns. Previously, I have used the four slots for hosts and ...
2
votes
1answer
1k views

MAMP PRO on Lion: why can't I see any changes in httpd-vhosts.conf?

After adding a local virtual host in MAMP PRO (os x lion) everything works as expected. Out of curiosity I had a look at httpd-vhosts.conf file placed in MAMP/conf/apache/extra and to my surprise this ...
2
votes
4answers
2k views

Redirect browser to different host and port

Background, Running windows 7, FF3.5, and am an admin. I recieve emails from an internal company service that has links. The problem is the links don't work from my office. If the resource is ...
2
votes
1answer
2k views

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

Can I chown /etc/hosts so my user owns it so I can edit it without sudo?

It's a bit inconvenient to have to sudo emacs /etc/hosts whenever I want to make a change to my hosts file, especially since I don't use a Terminal-based editor primarily. Could I change the ownership ...
2
votes
4answers
1k 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 ...
2
votes
2answers
3k views

Is there a way to 'include' a separate file in /etc/hosts?

Is there any way to 'include' another file within the /etc/hosts file? Particularly I want to include a non-protected (-rw-rw-rw) file so I can easily edit it in something like TextMate without having ...
2
votes
2answers
18k views

how to set the alias name to a server in hosts files

I am having a production server on which three different application are running . I need to configure alisanames for that server according to application to access the user.
2
votes
1answer
97 views

Why is the url being turned into an IP?

I am trying to understand why when I type in a url address that is for a development server my browser changes it to an IP? In the top of my host files I have something like 11.111.111.11 devserver. ...
2
votes
1answer
374 views

'Canonical' way to block websites in Windows 8 without using hosts

In Windows 8, Microsoft has (rightly) decided that Windows Defender will prevent modifications from being made to the %WINDOWS%/System32/Drivers/etc/hosts file. This is an attempt to prevent trojans ...
2
votes
2answers
2k views

Access a local web server from a mobile phone?

I am developing a website and I'd like to look at it from my mobile phone (which is right next to the dev computer, on the same LAN). The development is on a dev computer with XAMPP. The local domain ...
2
votes
1answer
325 views

How to make a website inaccessible from Chrome?

Using the Windows OS's host file to redirect an URL to an invalid one, e.g. 127.0.0.1, will help me to stop that URL in Internet Explorer and Firefox but not in Google Chrome. How can I do that in ...
2
votes
2answers
479 views

How can I rapidly switch hosts?

I'm in the process of migrating a forum setup from one version of the software on one machine (older shared Windows host) to a new VPS (Windows Server 2008). To install the software, I used my hosts ...
2
votes
1answer
3k views

Why in Windows 'localhost' connection is reset while 127.0.0.1 and other specified in 'hosts' file work?

I want to test some HTTP server on localhost address under Windows (XP) and I get strange behaviour: when I enter http://localhost/ in my browser I get connection reset error, while putting ...
2
votes
2answers
3k views

Windows Script Host Error Dialog Popups in the morning

A few days ago when I resume my computer from sleep mode in the mornings I would see an error dialog from "Windows Script Host" that read: "There is no script engine for file extension ".vbs". I am ...
2
votes
1answer
3k views

Ubuntu 10.10 + apache: vhost not working

At home I have an Ubuntu 10.10 desktop system for development purpose. For some reason I can't get virtual hosting working. At work I have an almost similar setup (completely done by me) with Apache ...
2
votes
1answer
974 views

How to block access to a website on Lucid Lynx?

I am trying to block a few websites on a lucid lynx, I tried editing /etc/hosts and that blocks access via url but the site still open if I enter the ip on the browser, how can I block ip access also? ...
2
votes
1answer
2k views

Redirect one domain to other using hosts file or similar

Usually, the syntax in the /etc/hosts file is IP hostname alias1 alias2 but I want to make something like SERVER SERVER2 but I don't want to specify the SERVER IP in the file, only the host ...
2
votes
1answer
1k views

Using Proxy Server to act as hosts file

I am trying to see if I can have a specific Hosts file that only a Proxy Server application on my machine will use while the remainder of the machine uses the normal proxy server. For example, I want ...
2
votes
0answers
61 views

Host hacks when no access to hosts file

I would like to test website where public DNS name is not changed yet. In order to to do that I need to change hosts file on the workstation but the domain security policy prevents me to do so. Is ...
2
votes
0answers
93 views

Make Mac Parallels IIS website accessible from Internet

I am developing an e-commerce site that is nearly finished, last thing I need to do is debug an issue with a callback from the payment gateway. I am running Windows through Parallels Mac and want to ...
2
votes
0answers
219 views

What is a dynamic way to connect to a virtual machine's webserver from its host machine? [closed]

As a web developer, what is the most efficient (automated) way to connect to a virtual machine (VM) running a development webserver from its host machine (the machine running the VM) when you do not ...
2
votes
1answer
105 views

Host file entries are ignored when accessing my University's WLAN

I set up my hosts file in Windows 7, so I can't access certain time-wasting sites. It works fine when I am back home, but as soon as I connect to my University's WLAN, I can still access all sites ...
2
votes
1answer
233 views

Make IP Address point to webroot instead of virtual hosts' documentroot

I used to have a one-to-one domain name and IP. Recently I've paid for a second domain name and decided to host it on the same box and IP. As such, I added virtualhosts to point each domain name to a ...
2
votes
3answers
3k views

hosts file for ip address

I would like to map ip address to specific localhost interfaces (e.g. 23.45.66.77 => 127.0.3.3). For named hosts I can use the hosts file. Naturally this doesn't work for IP address. This has to work ...
1
vote
5answers
740 views

How can I tell if I am SSH'd in somwhere already?

Is there an easy way to tell if I am SSH'd in somewhere without typing 'exit'? Like, if I am currently sitting at computer A and I SSH'd to computer B and then from B to computer C, is there a way I ...
1
vote
10answers
5k views

Corporate firewall blocking localhost/127.0.0.1

Is there some way I can access this without having it go through the corporate firewall at work? I'd like to set up a quick little production (WAMP) environment before moving things to the final ...
1
vote
2answers
134 views

How to use multiple localhosts

On my local development machine (Windows 7), I am using IIS and XAMPP to develop websites. Because it is unclear when I have multiple websits running, I am tried to rewrite the hosts file ...
1
vote
10answers
12k views

Windows XP - Hosts file has been tampered with

My Windows XP hosts file has been tampered with, and I can't fix it. This is particularly bad because whatever tampered with the hosts file left these: ... 188.124.7.190 www.google.com 188.124.7.190 ...
1
vote
4answers
203 views

while one website host is down, can I set up another host to take over, untill the first host goes back up

Basically I have a simple free host (000webhost.com) that I used to use. Now I have my own machine to host a website. however, when I'm updating stuff on that machine, or anything that might make the ...
1
vote
3answers
532 views

Locally redirecting domains (like with /etc/hosts) during certain hours of the day

folks. In the interest of upping my productivity, I'd like to selectively block or redirect certain websites in blocks of time during the day. I've already got some sites completely blocked in my ...
1
vote
4answers
7k views

Why doesn't my HOSTS file redirect DNS in Windows 7?

I've modified the HOSTS file on my Windows 7 machine in exactly the same manner as I have in the past on my Vista and XP machines; however it has had no effect. How do you redirect URLs in Windows 7 ...
1
vote
3answers
13k views

Hosts file is read-only and cannot modify it even as Adminstrator

Anyone know how to modify entries on the host file when it is being marked as read-only? I have tried unchecking "Read-only" but it says "Access is Denied". I'm runnin as the Administrator.
1
vote
2answers
1k views

How to change IP address to point to localhost in Linux?

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
1answer
1k views

What's the Windows equivalent of “/etc/hosts”? [duplicate]

Possible Duplicate: How do I block certain websites from being accessed through a browser? I can block my little brother from accessing a website on my Mac by adding the following line to ...
1
vote
2answers
182 views

If localhost is called 'localhost', why is the gateway not called 'gateway'? [closed]

If you run server services in your computer, it is very easy to configure the same computer to use it: just point the client to localhost. Now the gateway often runs your DHCP, DNS, proxy, firewall, ...
1
vote
2answers
524 views

What tools exist to override an IP from a DNS lookup per browser?

Up front: the per browser (or per process, if you will) part is the important part here. I'm well aware of the /etc/hosts(and its Windows counterpart), but would like to avoid this system-global ...
1
vote
1answer
707 views

Why can't I connect to my ip?

What I have is: Windows Vista Xaamp Server Huawei 3G USB modem The problem is that I can't connect to my IP, although I can connect to "127.0.0.1", I've even disabled the firewall and still can't ...
1
vote
2answers
1k views

Global hosts in /etc/hosts file?

I have a Mac OS X Snow Leopard Server as my network router. Is it possible to set a global host in its /etc/hosts file, like: 127.0.0.1 www.foo.bar that redirects all requests (e.g. browsing ...
1
vote
1answer
29 views

Local Network web site access with multiple computers

I have a local site running through my server computer located at 192.168.2.111 (port 80) on my network. I'm currently running the site using XAMPP. In order for the site to be accessed, I have ...
1
vote
2answers
75 views

I can't connect to school server from within school network

At our school we have a server where we can access documents and similar. Accessing it is no problem if I connect to the network via VPN connection. But if I connect to the network via the WLAN of the ...
1
vote
1answer
562 views

Are asterisks in /etc/hosts supposed to have any effect?

I have something like this in /etc/hosts: 192.168.0.1 example.com 192.168.0.1 *.example.com example.com is pinged to 192.168.0.1 as expected but pinging say sub.example.com outputs: ...
1
vote
2answers
590 views

how to get the name of current host?

This may be a pretty dump question! So how do I get the host name so that I can ssh into my machine (which is a Mac)? For instance : ssh myusername@<hostname> Is there any command to find out ...
1
vote
1answer
322 views

Weird Terminal error when opening TextEdit.app

I was trying to edit my host file with the command sudo /Applications/TextEdit.app/Contents/MacOS/TextEdit /etc/hosts I got the following error: Sending synchronize message <dictionary: ...
1
vote
1answer
1k views

nsswitch.conf - cannot modify (read-only)

I am attempting to modify nsswitch.conf from: hosts: files dns to hosts: dns files But, it is read-only. I have tried using: sudo vi /etc/nsswitch.conf And even with :w! It is ...
1
vote
3answers
1k views

host(1) command only uses first nameserver?

According to the man page, host ought to query "the server or servers listed in /etc/resolv.conf," but it only uses the first entry in that file: thefourthtower:$cat /etc/resolv.conf nameserver ...