The tag has no wiki summary.

learn more… | top users | synonyms

1
vote
2answers
248 views

Browser-level DNS settings, to work like the hosts file at system level

The web application we develop is doing certain things depending on the domain and subdomains in the address. To be able to develop and test everything on a local environment, one would need to bind ...
0
votes
1answer
83 views

Map Apache2 vhost to IP

I know that can be done with the hosts file and that it should be done with it but for some reason I'd really have to make Apache act this way. The problem is: the hosts are already in the DNS which ...
1
vote
3answers
653 views

Editing hosts file on Mac without admin rights

I currently work in a place where every developer programs on the same server and I don't believe it is a very good usage since I have to work on a network share, so it's a bit slow. I setup a copy ...
0
votes
2answers
1k views

drivers/etc/hosts doesn't work in Windows Server 2008

the following line in hosts file in windows/system32/drivers/etc/hosts doesnt work 127.0.0.1 gotomylocal.com I'm using Windows Server 2008, I'm new and configured Windows Server 2008 unconsciously ...
1
vote
2answers
9k views

Hosts file entries for multiple domains on VPS?

mydomain is the main domain (in Plesk, Media Temple MT VPS), and under that are several Wordpress sites, like mysite1.com, mysite2.com, etc. Problem is that I get lots of these errors in httpd's ...
0
votes
3answers
455 views

Apache2 virtual host in a VM, trouble accessing from host machine

I installed a fresh TurnKey LAMP VM (Ubuntu, Apache2, PHP 5.2, the usual) in VirtualBox (latest). I configured networking so it has an IP of 192.168.1.111 on the bridged network. Then I logged into ...
2
votes
3answers
16k views

Error connecting remote MySQL server [ERROR 1042 (HY000): Can't get hostname for your address]

Have MySQL 5.5 Server setup on a windows machine. I am able to connect to the server from console / app running on the same machine but not from a remote machine. While connecting using the command ...
2
votes
3answers
326 views

Editing /etc/hosts

I just signed up for a VPS with Linode, and am going through the beginners' setup instructions, but am a bit lost with the editing for /etc/hosts. It suggests that I edit it as follows (where ...
2
votes
4answers
808 views

Using /etc/hosts to redirect traffic during DNS switch

I'm migrating a rather busy site to another server cluster. The site with a MySQL master and two slave servers. I'd like to have as little downtime as possible during the switch, and my biggest ...
3
votes
3answers
3k views

How can I have a user specific hosts file

Is it possible to configure user specific hosts file instead of a common /etc/hosts. For example if user "user1" tries to get the name for the IP: "127.0.0.1", he gets "dev.user1" and if user "user2" ...
2
votes
2answers
1k views

user version of /etc/hosts

I am a user on a Solaris 10 system and I wish to maintain my own version of /etc/hosts. This file will function like a normal /etc/hosts, except it will only resolve hosts from processes that I run. ...
0
votes
2answers
2k views

Hosts file entry directed to a directory on localhost

I have a directory setup with a nice error message at http://localhost/blocked/. I'd like to direct entries in my hosts relating to sites I've blocked to that instead of just 127.0.0.1. ...
1
vote
1answer
877 views

/etc/hosts file for a multi-homed, multi-domain machine?

I have a server (debian) with two network interfaces that I would like to host multiple services and domains on; it is not entirely clear to me how the hosts file should be set up. Example: eth0, ...
1
vote
2answers
951 views

Is there a tool to export/import Windows Server DNS settings to/from the hosts file?

We have many rules in our internal DNS server and I'd like to use them in my local hosts file. Is there any utility to do this kind of conversion? Update: The DNS server is Windows Server and the use ...
0
votes
1answer
1k views

Sendmail /etc/hosts and DNS … what is the correct way?

I found one tutorial on setting up sendmail that says that in the /etc/hosts file, "The entry for 127.0.0.1 must always be followed by the fully qualified domain name (FQDN) of the server." Like so: ...
0
votes
2answers
654 views

Is a matching entry in /etc/hosts required for hostname?

I was installing a Tomcat webapp that refused to work until I stumbled on someone else's issue with an unrelated product. The solution was to add the machine's name to /etc/hosts, to match the name ...
5
votes
9answers
3k views

Block users from Social networking websites while firewall is down

We currently have a SonicWall firewall, which does a pretty good job a blocking Social networking websites like Facebook and Bebo. The problem we are having is that sometimes we need to temporarily ...
4
votes
4answers
4k views

Why is my hosts file not working?

I've been using the hosts file to for local website development, and it's recently stopped working. No entries other than localhost resolve. I've simplified to test, so it now contains only ...
0
votes
2answers
217 views

Problems pointing site to site in Hosts file

I'm on my localhost PC. I need to add an entry that maps our public site to our dev server. I tried several things with no luck: 192.168.1.40 oursite.com // where the IP here is our internal dev ...
0
votes
2answers
212 views

server-migration issues : how i test my site before DNS A record transfer

I am doing a Server migration of virtual server (host 15+ sites ), I did all file transfer & other configuration , Now I want to test my sites before actual A record transfer , I know I have to ...
2
votes
2answers
3k views

Can't access network share with name defined in hosts file

I have a network share on a machine that I can only reach by IP address. I then defined an alias for the IP in my hosts file so I could use that instead of the IP but then I can't log on to the share, ...
0
votes
1answer
2k views

IIS 7 Website Bindings www.domain.com & domain.com

I am currently setting up a domain name on windows server 2008r2 iis7 In the local hosts file I have mapped Domain.com and www.Domain.com to the localhost The iis7 website has the bindings for ...
1
vote
3answers
942 views

How to share /etc/hosts?

On my lan, all my etc/hosts are identical, except of course the first lines 127.0.0.1 localhost.localdomain localhost 192.168.0.1 thismachine.thisdomain thismachine Is there a simple way (I'm not ...
0
votes
7answers
12k views

localhost went “It works!” - and nothing else

I'm working with Mac's built in Apache, and everything was just great UNTIL - something went wrong. I think it's the .hosts file. http://localhost results with "It works!" message, while any ...
9
votes
8answers
67k views

Point Multiple IP Addresses to a Single Host Name

In Windows System, there is this file at C:\WINDOWS\system32\drivers\etc\hosts. This file allows us to default a specific IP address to a host name. The issue now is whether I can set multiple IP ...
2
votes
3answers
88 views

Partial HOSTS file read

I've a new entry that I put in the HOSTS file: 10.7.4.94 COMMRTU7 commrtu7 commRTU7 The first two entries ping, but the third one won't ping. I have a list of entries like this that work fine, any ...