The hosts file, used to map hostnames to IP addresses. This tag is for questions relating to usage of this file, including reading and modifying its contents to change which IP a hostname is mapped to.

learn more… | top users | synonyms

2
votes
4answers
3k views

How make changing to the /etc/hosts file take effect?

I added some lines to my /etc/hosts file to resolve a private hostname, but every time after rebooting, the lines I added get lost. Should there be any setting options to make these changes take ...
3
votes
2answers
2k views

Unable to save hosts file after adding websites to block.

I'm unable to save hosts file after adding websites to block,as well as unable to flush cache. I am not a techie, just researching on the web, and trying to follow directions for terminal and Text ...
8
votes
1answer
3k views

User specific hosts file in Mac OS X

I'm working on an OS X 10.6.8 machine, for which I do not have superuser privileges. I'd like to imitate the effect of adding an entry to the hosts file, i.e. have a certain domain resolve to a ...
2
votes
2answers
691 views

Changing permissions on /etc/hosts

I frequently (at least once per day) need to edit my hosts file, and typing my password every time is getting annoying. I know how to change the permissions to allow myself to write to the file, and ...
0
votes
3answers
2k views

Apache works, 127.0.0.1 is accessible, but http://localhost/ is not

In 10.7.2 update Apple roll out new bug, - hosts bug. This crashed broken hosts. I had tried install and configure dnsmasq, reconfig /etc/hosts/, and after this manipulations http://localhost/ doesn't ...
3
votes
1answer
235 views

How set up a local domain such as local.test?

I'm web-developer and I need local domains. Before 10.7.2 update, I'm just fix /etc/hosts as I need, but new update crash this solution. How fix this new "feature"?
3
votes
2answers
2k views

Lion “hosts” File Bug

I have some serious problems with the hosts file on my Lion 10.7.2. My hosts file is like following; 127.0.0.1 localhost 255.255.255.255 broadcasthost ::1 localhost fe80::1%lo0 localhost 27.0.0.1 ...
3
votes
2answers
692 views

Unable to revert changes to hosts file in OS X Lion

I edited the hosts file and added: 10.0.0.1 devsys.crossreader.net Later I commented out the entry: #10.0.0.1 devsys.crossreader.net When I ping or browse to devsys.crossreader.net the returning ...
4
votes
1answer
529 views

DNS: Search Domains not working correctly?

I am running OSX Lion. I've looked all over the web for solutions to the issue I'm having and can't find a fix. I've found several entries where uses are trying to resolve custom_hostname.dev (etc, ...
3
votes
2answers
5k views

Editing Hosts File to Redirect URL to different IP Address

When I edit my hosts file to redirect a URL to a specific IP address, nothing happens. My hosts file looks like this - 199.204.138.195 zionica.com this is in the directory /private/etc/hosts. I am ...
10
votes
4answers
64k views

Add a hosts file entry without jailbreaking

I have an iPad that needs to be able to connect to a server via its short hostname, e.g. http://app instead of http://app.example.com. The network it connects to assigns it a domain name other than ...
1
vote
1answer
996 views

Using hosts file on Mac OS X Snow Leopard

I have added two new host entries in /pricate/etc/hosts 127.0.0.1/wys/sub-folder local.wys 127.0.0.1/les/sub-folder local.les I have flushed the DNS using dscacheutil -flushcache I ...
2
votes
1answer
14k views

Multiple IP addresses for same host name in /private/etc/hosts?

I have a corporate mail account (exchange 2007) that uses a self-signed SSL certificate. No matter what I do, Mail always complains about this when I connect. If I look at the details it always says ...
0
votes
1answer
1k views

Adding an entry to the hosts file on iPod touch 4G?

Is it possible to add an entry to your /etc/hosts type file (or whatever the equivalent is) on an iPod Touch 4G without jail breaking it?
2
votes
2answers
226 views

Why does OS X's Apache server give different results using real and virtual addresses?

I'm developing a WordPress site on my Mac, running OS X 10.6.4. I'm using OS X's built-in Apache server to run the site locally during development. I've set up WordPress and connected it to OS X's ...