Host File in OSX?

paulboy

Chief Evangelist
Host file config problems

I have OSX Server running behind a router. I am webserving from it. When I type in my address to access my domain, it will take me to the router config page from the browser. I want to access my site from my computer, not the router browser. On Win XP this was fixed by going to c\windows\windows32\drivers\etc\hosts and adding domain name.
How does one do this in mac os x server and unix? How bout classic?
 
In Classic You need a file looks like:

192.168.1.1 A www.mydomain.de

You want to save it an set in the control-paneel to specify host-file.

In MacOS X it likes to be in /etc/hosts. You need a Terminal, the sudo (super-User-Mode) and go to /etc. With "cat hosts" You list this file. (I think it looks good)

But why not "http://192.168.1.1:80" in Your Internet Explorer??? When You use this, Your Mac not need a DNS-Lookup and connects directly to this Port...


:cool:
 
/etc/hosts is not consulted in mac os x.

Refer to my post in the Generall discussion about niload.

(use the search tool and search for niload if you like).
 
Back
Top