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)

266
votes
13answers
164k 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?
29
votes
7answers
56k views

Remove key from known_hosts

I have 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 ...
19
votes
5answers
7k 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
31k 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
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 ...
8
votes
6answers
26k 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 ...
7
votes
2answers
27k views

How do you add an ip/hostname pair to the host file in windows 7?

Our network IT people hate us, so our ip addresses are not entered in to 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 machine ...
6
votes
1answer
9k 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
1k 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
427 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
2k 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 ...
5
votes
3answers
12k 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
817 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
373 views

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

I keep having to type out ssh [email protected] 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
5answers
5k 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 ...
4
votes
3answers
3k 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
707 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
4k 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
1answer
187 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 ...
4
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?
4
votes
3answers
3k 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
7k 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? ...
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 (WinXP)? Let's say that I want to redirect, say, the site ...
3
votes
2answers
6k 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 ...
3
votes
4answers
12k 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 ...
3
votes
5answers
10k 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
975 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
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
716 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
2answers
846 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
1answer
8k 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
6k 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
714 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
3k 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 ...
3
votes
2answers
953 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
2answers
955 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
567 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?
3
votes
1answer
806 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
210 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 ...
3
votes
1answer
1k views

Hosts file resetting on Windows 7

Recently I've noticed my hosts file resetting itself. D:\Windows\System32\drivers\etc (OS installed on D drive) First time it reset it to the default, and now for the first time its completely ...
3
votes
1answer
7k views

DNS lookup problems Mac OS X - but nslookup works!

I'm having 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
321 views

Windows - hosts file resets without my interference

I have a pretty long list of time-wasting sites in the hosts file and it is working just fine, however I'm experiencing a very strange behavior - every day or two (my PC turns on automatically every ...
3
votes
2answers
87 views

URL not responding on OS X, fine on other machine

For some reason I can't access anything on python.org. nslookup resolves the IP address, but no browser or curl command will fetch anything. It works fine on a VMWare Ubuntu virtual machine and on a ...
3
votes
1answer
388 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 ...
2
votes
4answers
27k views

How to edit the hosts in Windows 7?

I would like to add an address to the hosts file. I am running Windows 7 (Hebrew edition), and I am the system administrator. I have tried the command notepad C:\Windows\System32\drivers\etc\hosts to ...
2
votes
3answers
18k views

Why is “127.0.0.1 localhost” needed in HOSTS file?

I disabled all my network connections and deleted 127.0.0.1 localhost in HOSTS file but cannot find what had I broken by it. My IIS and MS SQL Server 2008 R2 continues to resolve localhost just fine ...
2
votes
3answers
14k views

How do I get IE to use my hosts file when using a proxy .pac file?

I have the following line in C:\WINDOWS\system32\drivers\etc\hosts: 192.168.12.1 myapp.local When I open up a command prompt and type "ping myapp.local", I get a response from 192.168.12.1. When ...