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)

390
votes
13answers
246k views

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

As you probably know Google Chrome has its own internal DNS cache. Is there a way to clear it without having to wait for the time out or close the browser?
45
votes
8answers
88k views

Remove key from known_hosts

I built several virtual machines during the last few weeks. The problem is, the .ssh/known_hosts gives me the Man in the middle warning. This happens because another fingerprint is associated with the ...
30
votes
5answers
10k views

Don't add hostkey to known_hosts for SSH

I want to connect to a host via SSH but I don't want the hostname to be added to my ~/.ssh/known_hosts. How can I do that?
18
votes
5answers
33k views

How can I get VirtualBox to play nicely with dual monitors?

I use VirtualBox to run a Ubuntu x64 guest under a Vista x64 host with a 19" and 15" monitor. I enable seamless mode in VirtualBox, but the windows don't actually move anywhere other than the ...
10
votes
6answers
34k views

Using wildcards in names in Windows hosts file

Is there a way to create a wildcard domain in the Windows hosts file. I tried this xxx.xxx.xxx.xxx *.somedomain.com This does not work, is there maybe some other syntax I should use? I am ...
10
votes
1answer
2k 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 ...
9
votes
2answers
33k views

How do you add an IP address/hostname pair to the host file in Windows 7?

Our network IT people hate us, so our IP addresses are not entered into the DNS lookup automatically if we run a non-Windows OS. How do I get my Windows 7 machine to find the non-Windows OS ...
8
votes
1answer
12k views

How to alias a hostname on Mac OSX

In a nutshell, I would like to be able to open a browser and open local.example.com but it actually loads http://localhost/path/to/example.com/ I am using Mac OSX 10.5, and not afraid to get my hands ...
6
votes
5answers
1k views

Viable to virtualize my laptop?

I have a laptop that I'd like to run multiple operating systems on, at the same time. Specifically, I'd like to be able to boot up a Windows 7, if needed, a Windows XP, if needed, and a Ubuntu ...
6
votes
2answers
2k views

Hosts file location in Windows 7

I know the hosts file should be under C:\Windows\System32\drivers\etc\ But for some reason, I don't have the etc directory there at all. In fact, I searched for "hosts" under C:\Windows and found ...
6
votes
2answers
2k views

How can I route a domain to my box at home?

I currently own my own domain, and have been using dyndns.com's "custom DNS" to allow me to redirect 'example.com' to my website at home, which is on a dynamic IP. I've now switched over to a VPS ...
6
votes
5answers
466 views

ports and what they do

I am curious as to what a port number does. Are there specific port numbers for specific things? I know there is port 80 and I heard of 8000 in passing. I don't know why they are called that and ...
6
votes
3answers
3k views

Map localhost to IP address on Windows XP & Internet Explorer 7+?

I'm trying to map 'localhost' to an IP address elsewhere on the network, say '10.0.1.1' for example. I've tried editing my hosts file, changing the entry from: 127.0.0.1 localhost to 10.0.1.1 ...
6
votes
2answers
2k views

Should I restart a service or a interface to apply Windows' hosts configuration file changes?

After I change the file %SystemRoot%\system32\drivers\etc\hosts Should I restart something?
5
votes
5answers
6k views

HOSTS File Edit in Windows 7 Not Effective - Pinging URL Still Shows Original IP Address

I've edited my HOSTS file on my Windows 7 Ultimate PC to re-route a couple of URLs so that they point to 127.0.0.1, but after saving the file (and re-opening to verify the changes were written) and ...
5
votes
2answers
8k 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 ...
5
votes
1answer
286 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 ...
5
votes
3answers
15k views

Windows 7 stopped using the 'hosts' file for DNS resolution

I am running Windows 7 Home Premium 64-bit. Starting today, I noticed that DNS resolution is not reading my %SYSTEMROOT%\System32\drivers\etc\hosts file. I say this because I added two new entries to ...
5
votes
1answer
1k views

How to list all DNS names pointing to an IP?

I know – for example – that there are two DNS names for an IP. However nslookup ip only returns one record. How do I get all the records for an IP?
5
votes
1answer
830 views

Host-based snakeoil certificates in Ubuntu

How to create snakeoil a certificate and a key for a given host in Ubuntu?
4
votes
3answers
452 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 ...
4
votes
4answers
17k views

Permissions for editing hosts file on Windows 7 Home Edition

I am running Windows 7 Home Edition on my laptop. I also have an instance of Apache Server running and am trying to create a virtual directory. I have updated apache's vhost-httpd file and now need ...
4
votes
3answers
4k views

How to alias a hostname?

Is it possible to keep a network alias - without specifying the IP address in the hosts file? For instance, I have abcd.efgh.com but want abcd -> abcd.efgh.com so that ping and ssh work as they ...
4
votes
2answers
788 views

Why do some applications run faster on a 32-bit guest VM than on the 64-bit host machine?

I have a Windows 7 x64 laptop with a Windows XP x32 guest virtual machine installed using VirtualBox. Once I ran an app on the guest and found that it ran noticeably faster than it did on the host. ...
4
votes
2answers
5k views

How to reroute all traffic using hosts file?

Is there a way to redirect all traffic to one IP in the hosts file? If not, how else could i achieve this?
4
votes
2answers
4k views

Mac has IP address, can connect to router but can't connect outside

Weird problem, my MacBook can't connect anywhere right now! The router works, it gets an IP, it can log into to the router but it can't resolve anything! The router works as I connected another ...
4
votes
3answers
4k views

Resolving UNC path using hosts file

I'm having a problem accessing a UNC path in Windows Server 2008 using the hosts file. My hosts file looks like: 10.x.x.x server_1 When trying to access the unc path: This works: ...
4
votes
3answers
8k views

Hostname redirection using Hosts file

We can use C:\WINDOWS\system32\drivers\etc\hosts file to map hostname with IP addresses like this 127.0.0.1 localhost But is it possible to assign one hostname to another like this? ...
4
votes
2answers
293 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 ...
3
votes
5answers
2k views

Editing the hosts file

I'm looking to edit the Windows TCP/IP hosts file (at c:\windows\system32\drivers\etc\hosts). I'm wondering, what is the best way to do this (on Windows XP)? Let's say that I want to redirect, say, ...
3
votes
5answers
11k views

Hosts File not working correctly

I'm having some issues with my hosts file. 127.0.0.1 localhost 127.0.0.1 whatever 127.0.0.1 sub.localhost 127.0.0.1 example.com localhost and whatever both work. However the others have weird ...
3
votes
2answers
210 views

How to list all hosting services on Windows 7?

I cannot host on port 80, because there is an application on the background, which hosts on port 80. How do I find out which program it is?
3
votes
2answers
2k 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 ...
3
votes
2answers
24k 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 ...
3
votes
3answers
2k views

hosts file and unblocked subdomains

I modified hosts file to block google.com and its subdomains but it blocks only the main domain name. It does not block the subdomains. Windows 7 Starter 127.0.0.1 google.com It blocks google.com ...
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: ...
3
votes
3answers
4k 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 ...
3
votes
2answers
2k views

Quickly edit / change hosts file on Windows

I routinely need to add / remove / update hosts on a Windows 7 machine to add links to staging / test servers. On Mac I can use ghosts with the syntax ghost add staging-server.local ...
3
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 ...
3
votes
1answer
9k views

VirtualBox cannot ping Windows7 (host), Windows XP (guest)

I have successfully installed a Windows XP OS on VirtualBox with Windows 7 as host. The Windows XP guest is able to navigate on the Internet but I'm not able to ping the guest from the host and ...
3
votes
4answers
3k views

Block website on Windows without host file

Is it possible to block website on Windows without modifying hosts files? The reason I do not want to use it is that users need administrator options to modify it. I need some easier way to block a ...
3
votes
5answers
8k views

Possible reasons WINDOWS\system32\drivers\etc\hosts is not working (appart from the obvious)

Here's my C:\WINDOWS\system32\drivers\etc\hosts file: 127.0.0.1 localhost 192.168.100.1 router testing it: C:\>ping router Ping request could not find host router. Please check ...
3
votes
1answer
51 views

localhost declaration on PC?

I was wondering , where does windows declares that localhost is - the machine itself (where is it configured?) ? It is not in the hosts file. I thought it is in the Registry but I couldn't find ...
3
votes
1answer
6k 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 ...
3
votes
1answer
2k 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 ...
3
votes
2answers
1k views

How can I overwrite the hosts file in Windows 7?

I can't overwrite my hosts file in Windows 7. I open Notepad as an administrator and open the hosts file (C:\Windows\System32\drivers\etc) as an administrator. 96.44.181.245 www.Google.com has ...
3
votes
4answers
8k views

DNS lookup fails but nslookup works

I have DNS lookup problems on my internal network. I'm using an internal DNS server with the IP 192.168.1.254. If I use nslookup everything works like it should: >hawk:~ user$ nslookup ...
3
votes
2answers
1k views

How to route somehost to other host with some port on linux?

Say I want to route all requests to google.com to localhost:333 , how to do so?
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 ...
3
votes
2answers
224 views

How can I use the computer name in this situation?

I have the following scenario: Windows 7 64-bit, hosting an XP Mode, on the host machine there is Oracle 10g installed. On the XP Mode there is Oracle Client installed. From XP Mode I am able to ...