0
votes
0answers
52 views

Hosts file cannot be found, max OS X

When I went restored my iPhone through iTunes I got an error 3194. I followed the instructions on the Apple site that tells me to edit my hosts file. I followed the instructions and opened sudo in ...
0
votes
0answers
17 views

Admin in Terminal, logged on Family's session

I have a weird problem. I'm trying to connect on my VPN with Mac 10.7.5 (Java 7 U45, Citrix Receiver 11.8) but when I do, JSam is not able to write in Hosts file. So my Mac session is called "Family" ...
0
votes
0answers
41 views

Using Maverick, I modified my hosts file to deny access to facebook, doesn't work as intended [duplicate]

I modified both /etc/hosts and /private/etc/hosts here it is ## # Host Database # # localhost is used to configure the loopback interface # when the system is booting. Do not change this entry. ## ...
0
votes
1answer
747 views

Missing Host File - Mac OS X

I've looked through the internet and even saw a similair posted question, but didn't really give the answer I was looking for, so I'll see if I can get any better luck. I recently had to modify my ...
0
votes
1answer
58 views

Terminal host changed

I opened terminal today and realized that the usual startup text: my-macbook-pro:~ myUsername$_ has been replaced by: mscs256-24197:~ myUsername$_ I tried googling but couldn't find anything. ...
0
votes
1answer
272 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
101 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. ...
1
vote
3answers
568 views

Locally redirecting domains (like with /etc/hosts) during certain hours of the day

folks. In the interest of upping my productivity, I'd like to selectively block or redirect certain websites in blocks of time during the day. I've already got some sites completely blocked in my ...
3
votes
3answers
3k views

Adding a line into the hosts file, getting permission denied when using sudo - Mac

I'm trying to add a line into the hosts file on my Mac by executing a one line command on the terminal. I thought this would be easy using sudo, but it returns "permission denied" when I try to add ...
2
votes
2answers
127 views

Can one make a Macbook behave like a USB-Drive

Is there a Way to emulate an usb-drive with a Macbook? I do not mean to emulate usb drives on my macbook! I would like to plug a double usb cable to my macbook and e.g. my TV. I want the TV to think ...
1
vote
1answer
490 views

/etc/hosts deleted on restart

Since yesterday, my /etc/hosts file disappears "magically" on restart. When I recreate it via sudo vim hosts everything works, but it's gone once I restart. I'm on Mac OSX 10.6.8, running MAMP 1.9.4 ...
4
votes
3answers
406 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 ...
1
vote
2answers
687 views

how to get the name of current host?

This may be a pretty dump question! So how do I get the host name so that I can ssh into my machine (which is a Mac)? For instance : ssh myusername@<hostname> Is there any command to find out ...
1
vote
1answer
346 views

Weird Terminal error when opening TextEdit.app

I was trying to edit my host file with the command sudo /Applications/TextEdit.app/Contents/MacOS/TextEdit /etc/hosts I got the following error: Sending synchronize message <dictionary: ...
10
votes
1answer
2k views

Mac OS X “hosts” file, can I include other files with it?

I am working on some automation scripts to configure my network settings, hosts file contents, and /etc/resolver files, when accessing different networks I frequent between. There are some ...
2
votes
2answers
1k views

Can I chown /etc/hosts so my user owns it so I can edit it without sudo?

It's a bit inconvenient to have to sudo emacs /etc/hosts whenever I want to make a change to my hosts file, especially since I don't use a Terminal-based editor primarily. Could I change the ownership ...
1
vote
1answer
779 views

Joomla cannot connect to MySQL using localhost

I have a fresh Joomla installation in a Mac OS X and I have configured a database to connect the application to. By default, Joomla uses localhost to connect (variable $host), but it does not work. ...
3
votes
2answers
4k views

Mac has IP address, can connect to router but can't connect outside

Weird problem, my MacBook can't connect anywhere right now! The router works, it gets an IP, it can log into to the router but it can't resolve anything! The router works as I connected another ...
6
votes
1answer
10k views

How to alias a hostname on Mac OSX

In a nutshell, I would like to be able to open a browser and open local.example.com but it actually loads http://localhost/path/to/example.com/ I am using Mac OSX 10.5, and not afraid to get my hands ...
3
votes
2answers
87 views

URL not responding on OS X, fine on other machine

For some reason I can't access anything on python.org. nslookup resolves the IP address, but no browser or curl command will fetch anything. It works fine on a VMWare Ubuntu virtual machine and on a ...
3
votes
2answers
7k views

DNS lookup problems Mac OS X - but nslookup works!

I'm having DNS lookup problems on my internal network. I'm using an internal DNS server with the ip 192.168.1.254. If I use nslookup everything works like it should: hawk:~ user$ nslookup ...
1
vote
2answers
1k views

Global hosts in /etc/hosts file?

I have a Mac OS X Snow Leopard Server as my network router. Is it possible to set a global host in its /etc/hosts file, like: 127.0.0.1 www.foo.bar that redirects all requests (e.g. browsing ...
0
votes
3answers
884 views

How did I manage to mangle my Mac OS X hosts?

A while ago I set reddit.com to 127.0.0.1 in my hosts, because it was way too much of a time sink. I don't remember exactly how I set it - I know I had some trouble with it and tried a few different ...
0
votes
1answer
894 views

Mac OS X: hosts file changes don't persist

On my Mac OS X 10.5.7 system I've installed and uninstalled GasMask (a utility to manage hosts files) at some point. Ever since then, when I manually edit my hosts file (which I furthermore manually ...