Localhost down | MacPorts LAMP

Bradley Giesbrecht brad at pixilla.com
Sun Feb 28 22:03:06 PST 2010


On Feb 28, 2010, at 9:51 PM, Ryan Schmidt wrote:

>
> On Feb 28, 2010, at 23:41, Jasper Frumau wrote:
>
>>> I seemed to solve it by adding an entry to /etc/hosts for my  
>>> bonjour name to map to localhost.  In your case, something like  
>>> this:
>>> 127.0.0.1       Jaspers-MacBook-Pro.local
>>
>> So you suggest replacing
>> 127.0.0.1 localhost
>> with
>> 127.0.0.1 something-else
>> ?
>> So you hostname for 127.0.0.1 is no longer localhost either, am I  
>> correct?
>
> Not replacing; adding:
>
>
> Jaspers-MacBook-Pro:etc jasper$ cat hosts
> ##
> # Host Database
> #
> # localhost is used to configure the loopback interface
> # when the system is booting.  Do not change this entry.
> ##
> 127.0.0.1    localhost
> 255.255.255.255    broadcasthost
> ::1             localhost
> fe80::1%lo0    localhost
>
> # My local aliases
> 127.0.0.1    Jaspers-MacBook-Pro.local

or

dscl localhost -create /Local/Default/Hosts/Jaspers-MacBook-Pro.local  
IPAddress 127.0.0.1

dscacheutil -flushcache

dscl localhost -list /Local/Default/Hosts

ping Jaspers-MacBook-Pro.local


// Brad


More information about the macports-users mailing list