0
votes
2answers
15 views

Editing the OS X hosts file with a one-time password

I was wondering if there was a way to edit the host file using a "throwaway" password. I want to prevent myself from entering certain websites, but OS X doesn't not have a good alternative for Cold ...
1
vote
3answers
154 views

Easy way to view a website at a different IP than associated with hostname?

Some background — WordPress is really annoying in terms of what hostname you access it from, which makes creating testing environments rather painful (That is, I could create a subdomain for staging, ...
0
votes
0answers
53 views

Changing hosts file in Mac OS X does not take effect

I have tried to alter the hosts file adding my own entries to access sites that are being blocked by my ISP. When address the entries as follows 194.71.107.82 totallylegalsite.se After adding ...
0
votes
2answers
64 views

My Mac is not responding for this own IP, but it's ok for everything else

My Mac has the IP 192.168.1.123 and this network settings: IP: 192.168.1.123 Net Mask: 255.255.255.0 Router: 192.168.1.3 DNS: 208.67.222.222, 8.8.8.8 and apache answer correctly if I request ...
0
votes
1answer
215 views

Adding dyndns hostname to /etc/hosts with Alias

I configued my router to work with dyndns. Instead of using the dyndns hostname created by dyndns.org, I want to define my own host name, that in tern, refers to that dyndns hostname. For example, ...
2
votes
1answer
285 views

Creating hostsname aliases through dscl does not work in Mountain Lion

I read a few places that dscl is preferred over /etc/hosts for adding hostnames (for instance when developing). But in Mountain Lion (OS X 10.8) I cannot get it to work (others too). I have read ...
2
votes
1answer
97 views

Why is the url being turned into an IP?

I am trying to understand why when I type in a url address that is for a development server my browser changes it to an IP? In the top of my host files I have something like 11.111.111.11 devserver. ...
6
votes
4answers
2k views

Hosts file on Mountain Lion stopped working suddenly

I have used my hosts file (located in /private/etc/hosts) several months to block distracting websites during the work day. This worked all well until now. Today it suddenly stopped working. Some ...
12
votes
4answers
4k views

Why can't I block Facebook using /etc/hosts on Mountain Lion?

It worked for a while in the old configuration, but then stopped working for some reason. Here is my /etc/hosts file from my Mountain Lion MacBook Air: 127.0.0.1 reddit.com www.reddit.com 127.0.0.1 ...
2
votes
1answer
261 views

Long lookup times for .local in hosts file

I'm using Mac OS X 10.8.2 and I have in my local /etc/hosts this content: 127.0.0.1 dev.test.local Together with that I locally got nginx installed to serve static files for that domain. And while ...
1
vote
1answer
651 views

Hosts files keps reverting when I turn off my computer.

I have changed my host file to allow me access via RDC to computers over VPN network. I change the ip's and it works fine. My problem is that every time I log back onto my computer they have ...
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 myusername@somereallylonghost.numb3r5.ojd202nk.net a lot. Instead of an alias, I just want to shorten that host name. I tried editing my hosts file to include shorthost ...
5
votes
2answers
8k views

How to make changes to Mac /etc/hosts permanent?

On my Mac (running OS 10.6.8), I can edit my hosts file with sudo vi /etc/hosts, but changes I make don't seem to persist through restarts or possibly awaking from sleep mode. Is there a way to make ...
2
votes
1answer
342 views

Changed /etc/hosts entries, but they are still pointing to localhost

I've had two sites on my local host and have had mysite1.local and mysite2.local in my /etc/hosts file to pointing in my localhost. Now, I moved those sites into my homeserver (Ubuntu, Local network) ...
19
votes
4answers
11k views

/etc/hosts getting reset in Lion

In order to do web development on my local machine, I use the /etc/hosts file to define hosts that point back to 127.0.0.1 to which I have Apache serve up via VirtualHosts. This works great, except ...
0
votes
1answer
524 views

Automatically change /etc/hosts on OS X 10.6

I edit /etc/hosts as a first line of defense to stop me going to certain distracting sites during the working day. Ideally I'd like to have two versions of hosts and a cron job that switches them ...
0
votes
1answer
868 views

Changing Windows 'hosts' file in guest OS under Parallels Desktop 6 on Mac

I am running Windows 7 in a Parallels Desktop 6 on Mac. On the mac, I use /etc/hosts: 127.0.0.1 mysite and it works fine; I can type mysite in the URL box and the website will display. What I ...
1
vote
1answer
187 views

Running two hosts files at the same time

I am developing on my local machine and I need to have a browser run on one host file and another browser run on a different host file. One browser would run a host file to redirect domain.com to my ...
4
votes
1answer
3k views

Windows hosts file equivalent on Mac?

I am doing a project and uploading to a clients test server, however they only have IP address to access and suggested editing my hosts file. I'm on a Mac, where is the hosts file?
0
votes
2answers
550 views

What is Windows “hosts” file alternative for OSX?

I just got a Mac computer (OSx v10.6) to test my web site design. Web site is running on the local network, and in windows computers I use "hosts" file to map its network IP address to domain name, ...