The tag has no usage guidance.

learn more… | top users | synonyms

17
votes
3answers
22k views

How do I add IPv6 address into System32\drivers\etc\hosts?

There is already by default, and it works (Win 7): ::1 localhost This also works (testing with ping): ::1 hosta But when I'm trying to add something non-loopback, it ...
4
votes
3answers
3k views

Is it safe to add additional 127.0.0.1 entries to /etc/hosts?

I want to add this entry: 127.0.0.1 api.localhost To test the api of my web app. However, the hosts file says: ## # Host Database # # localhost is used to configure the loopback interface # ...
5
votes
3answers
3k views

How do I re-map a hostname to another?

How can I re-map one hostname to another, similar to how one would re-map a hostname to an IP in /etc/hosts? For instance, how could I map oneheckofalongdomainname.com to a.com on my local machine? ...
0
votes
2answers
120 views

Web site from host name requiring authentication

On Windows Server 2003 I am using a web browser (http://servername/site) to get to a web site on itself (servername) referencing an entry in the hosts.txt file - required for the use of the software. ...
0
votes
1answer
10k views

/etc/hosts: What is loghost? (fresh install of Solaris 10 update 9)

# # Internet host table # ::1 localhost 127.0.0.1 localhost XX.XX.XX.XX myserver loghost What is the purpose of loghost? If it was not for having loghost in there, ...
1
vote
5answers
141 views

How to monitor a program's Internet activities?

I'm trying to figure out how a program communicates with its website. I've edited my hosts file so that their website points to my computer and set up a script that logs every time it's accessed. But ...
1
vote
2answers
301 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
84 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
761 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 ...
2
votes
2answers
14k 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
477 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
19k 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
349 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
840 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
4k 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
3k 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
949 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
1k 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
800 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
4k 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
219 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
213 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
4k 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
1k 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 ...
1
vote
7answers
15k 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
9answers
86k 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 ...