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)

3
votes
2answers
1k views

LINUX Ping host, Display error on failure

I'm writing a bash script to ping a given hostname, and display whether or not the host is active (display a simple message.) Should be easy, but headache instead. Here is what I have so far: ...
0
votes
1answer
244 views

DNS redirect in Win8 like it was possible with hosts file

there was a time when you could redirect a server for debugging purpose simply by changing the windows hosts file. This does not work with windows 8. So what is the easiest way to redirect (let's ...
1
vote
1answer
6k views

How to share Internet connection of VMWare guest with host in VMWare Player?

I have a cheap 3G Internet stick with no driver support for my current operating system, yet that is currently my only way to get online. I had no trouble getting a connection with VMWare Player and ...
0
votes
2answers
370 views

trouble adding sub URLs / pages inside a domain to /etc/hosts file

I want the hosts file to block www.url.com/page without blocking www.url.com step 1 ////////////// I've added 127.0.0.1 www.apple.com to my /etc/host file When I do ping www.apple.com I get this ...
1
vote
4answers
56 views

Blocking a site from myself and redirecting

I've tried editing "C:\Windows\System32\Drivers\etc\hosts" by adding: 127.0.0.1 websitetoblock.com But I can still access the website. Ideally I want to be redirected to a URL of my choice if I try ...
0
votes
1answer
114 views

my LAN pcs are not able to connect to the Internet. I am using DHCP server and linkys router

My connection details: A have atotal 10 PCs connected to Linksys router. DHCP is enabled in the router. IP adddress: 192.168.0.103---013 subnet 255.255.255.0 gateway: 192.168.0.1 ...
0
votes
1answer
119 views

Split HOSTS file used by Microsoft TCP/IP for Windows

I have a file called hosts located at: %systemroot%\system32\drivers\etc I want to create two partial file of a single one. So that, I can add my entries each time to a new file without having ...
0
votes
1answer
62 views

host to host translation in linux?

In Linux (fedora or cent OS, etc), I want to say if one program tries to download from one url, it goes to my host (my url) instead of what it tries to go. Something like /etc/hosts, but /etc/hosts is ...
0
votes
0answers
52 views

Why is my ping high on certain hosts?

My ping is fine on the host which is located in UK. With this one, 78.110.165.196:5200, it's a normal 190-220, but with the other hosts, like 350.178.33.50.4:5198, it is more. I contacted my ISP, but ...
1
vote
0answers
108 views

Localhost via WAMP doesn't connect

I needed to change the default port wamp was listening to, so now I need to use another one, let's say 81. So now instead of going to http://localhost now I need to go to http://localhost:81. No ...
2
votes
1answer
102 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. ...
3
votes
1answer
1k views

Hostname resolution of Linux machines with static IP

I have couple of linux servers that I to assign static IPs to because I'm doing some CARPing and Vlans. The way my DNS server is set, it gets the hostnames dynamically from the nodes, as soon as ...
0
votes
2answers
80 views

How can I automate my usage of three VM machines with the same alias?

How do I automate my usage of three VM machines which require me to add a IP aliased to a name in my HOSTS file. I upload code to the server of choice and then I go to the address http:/ / ...
1
vote
3answers
583 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 ...
0
votes
1answer
37 views

Host File under MacOSX

I am trying to edit my host file to see how it works. But with no success. I enter this in my /etc/host file: 173.194.66.103 www.youtube.com And when I type 173.194.66.103 on the browser I get ...
0
votes
2answers
71 views

Why would I need a host adapter pcie card?

I have a total of 4 expansion slots on my PC. I am putting a killer network card, graphic card, and a sound card in it. I searched a list of expansion cards to put in the last slot that could ...
3
votes
3answers
3k 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 ...
1
vote
0answers
211 views

Sendmail not working on ubuntu guest - unqualified host name

I have a win7 host running ubuntu guest through vbox. it is configured with a bridged network adapter and I am using DHCP to assign an ip of 192.168.0.5 which is mapped to smartstart.dev in my windows ...
0
votes
1answer
81 views

Hosts redirection not working properly

Simply put, I want to redirect uk.wikipedia.org to en.wikipedia.org. I put this in the hosts file on windows, saved it, and flushed the DNS cache: 91.198.174.225 uk.wikipedia.org But when I ...
1
vote
4answers
215 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 ...
3
votes
1answer
463 views

No network connection on Host or Guest simultaneously with Client Hyper-V + Windows 8

I create a virtual switch from the Hyper-V manager, then I set it as the Network adapter in the VM's settings. In subsequent attempts, this happens: The VM gets access to the internet, but the ...
3
votes
1answer
3k 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 ...
2
votes
2answers
132 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 ...
-1
votes
2answers
869 views

Point Multiple IP Addresses to a Single Host Name

Is it possible to have a single host name with multiple IP addresses? The hostname will be used to access a box in LAN with 192.168.x.y and from outside with IP w.x.y.z which is portforwarded to that ...
2
votes
0answers
106 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 ...
0
votes
1answer
99 views

Hosts entry does not take effect

I am working on windows 7. I have successfully added entries on my hosts file before and it worked fine. 10.10.10.10 me.mysite.com But different website was given to me like this (Similar looking): ...
2
votes
1answer
413 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 ...
1
vote
2answers
242 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
2k 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
769 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: ...
0
votes
1answer
299 views

Mac OSX localhost does not resolve

Trying to access localhost no longer works on my new Macbook air. It used to work just fine on my old Macbook Pro which was also running Mountain Lion. I have tried most suggestions found in other ...
3
votes
1answer
1k views

How to block IP Address via Windows Host

I want to block access to a certain ip address via windows host. This is the ip address 41.190.8.17. And this is the content of my host file. # localhost name resolution is handle within DNS ...
-2
votes
2answers
148 views

Virtual machine and virus on Host [closed]

The answer should be obvious but I ask anyway. If the host is virus infected with a keylogger and you do sensitive stuff on a virtual linux client, that information is being logged by the keylogger. ...
0
votes
1answer
64 views

find out which program edited my hosts file

I have this line in my hosts file: x.x.x.x www.google.com For many times, I saw this line missing from my hosts file while everything else in it stayed untouched. in this case I would add this line ...
2
votes
0answers
242 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 ...
1
vote
1answer
626 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 ...
2
votes
1answer
112 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 ...
1
vote
0answers
65 views

Trying to reconcile global ip address and Vhosts

I have been using my local machine as a web server for a while, and I have several websites set up locally on my machine, all with similar Vhost files like the one seen here ...
0
votes
1answer
2k views

Allow all websites for administrator account and block all websites (but a few) for limited accounts

At my work we have a PC which runs Windows XP and is used by all employees. This PC is mainly used for our company website: a trailer booking website. At the moment there is one account: an ...
3
votes
2answers
1k views

Unblocking blocked site with hosts file

I have www.somesite.com blocked in my country. But I have another domain www.another.com that points to the same server and it's not blocked (Apache Virtual Host) and works fine. I put an entry in ...
0
votes
0answers
178 views

machine ignoring host file?

So I can ping the IP address for the server I need but when I ping it by name, the server name is followed by an incorrect IP address. My host file is updated, I can communicate with my machine from ...
1
vote
1answer
504 views

/etc/hosts deleted on restart

Since yesterday, my /etc/hosts file disappears "magically" on restart. When I recreate it via sudo vim hosts everything works, but it's gone once I restart. I'm on Mac OSX 10.6.8, running MAMP 1.9.4 ...
1
vote
0answers
476 views

How to redirect a URL to a certain IP, as with /etc/hosts?

Someone on my shared server has messed with some setting such that gethostbyname('www.google.com') (PHP) gives me the IP for his website, rather than Google. I believe this can be done via the ...
1
vote
1answer
114 views

Hosts not recognized?

Basically, nobody can establish a connection to anything I host. The website, teamspeak, and game servers. I think it may have something to do with the hosts file or network configuration, but I have ...
4
votes
3answers
415 views

Editing /etc/hosts on Mac OS X Lion to use shorter host for ssh-ing

I keep having to type out ssh myusername@somereallylonghost.numb3r5.ojd202nk.net a lot. Instead of an alias, I just want to shorten that host name. I tried editing my hosts file to include shorthost ...
2
votes
2answers
3k 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 ...
-1
votes
1answer
52 views

Can not access www.websaru.com

I am unable to access the website www.websaru.com. I'm in China, is the website blocked? I don't think so, because it is not a sensitive website. How can I access it? Please help.
0
votes
2answers
368 views

Firefox not taking note of /etc/hosts?

I've set foo.com to 127.0.0.1 in my /etc/hosts file in (located here on Windows: C:\Windows\System32\drivers\etc\hosts). Though Chrome loads foo.com with the one hosted locally on port 80, Firefox ...
2
votes
1answer
259 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 ...
4
votes
2answers
7k 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 ...