Questions tagged [hosts-file]

Hosts file is an OS file to map hostnames to IP addresses.

Hosts file is an operating system file that maps hostnames to IP addresses. It is a plain text file. In modern operating systems, the hosts file remains an alternative name resolution mechanism, configurable often as part of facilities such as the Name Service Switch as either the primary method or as a fallback method.

152 questions
0
votes
1 answer

CentOS 5.8 why does my /etc/hosts file mess up after a reboot?

I'm running CentOS 5.8 (it's the Citrix XVA appliance provided on the website) but having an issue where every time I restart the server, the /etc/hosts file loses the IP address of the server...for instance, the way the host file should looks is…
cjones26
  • 276
  • 1
  • 6
  • 18
0
votes
1 answer

the WIndows hosts file

Can I map a domain to another domain (mirror)? I wish to map php.net to de.php.net, so when I access something like php.net/whatever, the browser will display stuff from de.php.net/whatever (the mirror is faster :P). Adding this line in the hosts…
0
votes
1 answer

Domain Controller without DNS on remote site fails to authenticate

We have a domain controller at our remote site that doesn't have any DNS server or DNS replication. I have just setup a client machine that was using a local account to instead use a domain account. It connected to the domain fine but I couldn't…
0
votes
1 answer

Windows redirect by port?

Possible Duplicate: Forward Incoming Traffic with Windows hosts file? In Windows you can redirect traffic from a host by using the hosts file. C:\Windows\System32\drivers\etc\hosts example 127.0.0.1 cp97384.edgefcs.net Is there a way to do this…
Zombo
  • 1
  • 1
  • 16
  • 20
0
votes
3 answers

How do I configure my router as a DNS server?

I have a question regarding router configuration: How can I configure it to direct certain packets sent to certain addresses (like Facebook, Youtube and other procrastination sites) to be sent to a different computer on the network? I understand it…
Itamar Marom
  • 119
  • 3
0
votes
1 answer

Multiple virtual hosts on localhost for development

I'm using Xampp (Apace 2.2.20) on mac os lion for development. I have a number of CMS projects and i want to access them by going to cms1.localhost, cms2.localhost, cms3.localhost etc Currently, with the setup I have below, all requests to the…
rix
  • 35
  • 1
  • 1
  • 4
0
votes
4 answers

Does '/etc/hosts' need to contain all domains hosted by the server?

I'm about to set up a new Ubuntu 10.04 server which will act as a web server. The server will host a couple of domains, including a few subdomains. Does the '/etc/hosts' need to contain all domains and subdomains, or is it enough just to let it…
sbrattla
  • 1,578
  • 4
  • 28
  • 52
0
votes
2 answers

Show development and test site with same domain on browser

I have a situation where domain.com (is the live server - A record points to this server). We have another domain.com (which is the test server - users manually set hosts file). Users would like to access the live and test sites simultaneously on…
ServerDown
  • 372
  • 1
  • 2
  • 9
0
votes
3 answers

Make My PC think another PC on the network doesn't exist

I'm in the process of migrating a database server, both the new and the old server are on the same network. Now I want to test the application that uses this database server on my machine which is also on this network. I don't want to turn the old…
Gavin
  • 253
  • 1
  • 2
  • 8
0
votes
1 answer

hostname and hostname -f are backwards?

When I run the command hostname (on Ubuntu 10.04 LTS Server) it returns 'mail.mydomain.com' When I run hostname -f I get 'mail' as a response. These seem backwards to me, shouldn't hostname -f return the FQDN? Where did I misconfigure this?
Citricguy
  • 166
  • 1
  • 1
  • 9
0
votes
1 answer

Forward Incoming Traffic with Windows hosts file?

A long time ago I found some guide that showed how to use the Windows Hosts file to forward incoming traffic to another local IP/Port. We setup a clients server on one IP/Port, and they wanted it changed to another IP/Port on the same machine, but…
Aidan Knight
  • 650
  • 3
  • 11
  • 19
0
votes
3 answers

How to setup my host file

I'm trying to setup my host file at home in order to have access to my webserver from my outside IP. If I go http://localhost/test I have access to my apache but If I try http://myip/test I see a 404 from my router. The nat rule / fw is working…
Paté
  • 115
  • 1
  • 5
0
votes
2 answers

Problem trying to access local website (settings in hosts file) on Host PC (Win XP SP3) from Guest PC (VM Win 7)

Host PC : Windows XP SP3 Guest PC : Virtual Machine running Windows 7 SP1 Host PC IP Address : 172.16.5.55 Guest PC IP Address : 172.16.6.62 On my Guest PC I'm trying to access a website running on my Host PC. My Host PC's hosts file has the…
Code Maverick
  • 113
  • 1
  • 8
0
votes
1 answer

Simulating IP addresses for testing (not quite same as IP spoofing) for development purposes?

In my previous question, DNS simulation for testing purposes?, I'd asked about simulating DNS. Is there a way to simulate an IP address within Windows for the virtual hosts in my previous question? The host in question is:
azurio4
0
votes
1 answer

Mac's Apache virtual hosts playing up

I'm hitting the most frustrating problem with the devlopment environment on my Mac at work (OS X 10.6.6, Apache 2.2.15, PHP 5.3.3 - all default installs with very little modification). Last night I started working on a new website, I added a virtual…
Rowan
  • 115
  • 1
  • 7