tag:blogger.com,1999:blog-3191291.post2050312343202766865..comments2024-02-05T22:23:32.443-08:00Comments on Coding In Paradise: Changing Mac OS X Hosts FileBrad Neuberghttp://www.blogger.com/profile/03274020042497854648noreply@blogger.comBlogger8125tag:blogger.com,1999:blog-3191291.post-69967426260519354782010-10-12T20:17:52.685-07:002010-10-12T20:17:52.685-07:00What gives! it doesent work at all for me.
gcos...What gives! it doesent work at all for me.<br /><br /><br />gcostanzo@euclid:~$ uname -a<br />Darwin euclid.local 10.4.0 Darwin Kernel Version 10.4.0: Fri Apr 23 18:28:53 PDT 2010; root:xnu-1504.7.4~1/RELEASE_I386 i386<br />gcostanzo@euclid:~$ cat /etc/host<br />tv 192.168.1.115<br />joshua 192.168.1.113<br />gcostanzo@euclid:~$ sudo dscacheutil -flushcache<br />gcostanzo@euclid:~$ ping tv<br />PING tv (192.168.1.100): 56 data bytesSantahttps://www.blogger.com/profile/03671751262527858091noreply@blogger.comtag:blogger.com,1999:blog-3191291.post-91006381886532535512009-01-19T04:10:00.000-08:002009-01-19T04:10:00.000-08:00niload is a thing of the past.. (10.4.x, OS X Tige...niload is a thing of the past.. (10.4.x, OS X Tiger)<BR/>In Leopard /etc/hosts work just like on any other unix so there is nothing else that needs to be done on newer os X machines.Joachimhttps://www.blogger.com/profile/12360102892510959730noreply@blogger.comtag:blogger.com,1999:blog-3191291.post-8456412486842072632008-06-05T20:45:00.000-07:002008-06-05T20:45:00.000-07:00What version of OS X are you guys using... i tried...What version of OS X are you guys using... i tried to use niload and it said command not found (i'm on 10.5.3)SkinnyBoyhttps://www.blogger.com/profile/05762192988862899806noreply@blogger.comtag:blogger.com,1999:blog-3191291.post-43514562812496258202008-05-29T19:12:00.000-07:002008-05-29T19:12:00.000-07:00You can also get FF to clear its IP cache by hitti...You can also get FF to clear its IP cache by hitting File > Work Offline twice (once to go offline, once to go back online).Mark Reederhttps://www.blogger.com/profile/12457317510604965424noreply@blogger.comtag:blogger.com,1999:blog-3191291.post-4987871085880090322008-05-26T11:46:00.000-07:002008-05-26T11:46:00.000-07:00@Tom: Hi Tom, I started by doing that but Firefox ...@Tom: Hi Tom, I started by doing that but Firefox doesn't always reliably pick up the addition or removal of an address. _Sometimes_ it does but not always. The extra steps ensure that Firefox picks up the changes. Otherwise its looking into an IP cache that might be stale.Brad Neuberghttps://www.blogger.com/profile/03274020042497854648noreply@blogger.comtag:blogger.com,1999:blog-3191291.post-90599650975740312982008-05-25T12:53:00.000-07:002008-05-25T12:53:00.000-07:00This seems like its a bit of overkill...all I do i...This seems like its a bit of overkill...all I do is:<BR/><BR/>sudo vi /etc/hosts<BR/>[enter password]<BR/>[make my changes]<BR/>:wq<BR/><BR/>I do this a lot, especially since I do almost all my dev using virtual machines with assigned IP addresses, and to test on the host OS (OS X) I need to ensure that the IP address matches the host name I'm looking for.<BR/><BR/>I've never had to stop any services to do this.<BR/><BR/>Maybe that will help?Unknownhttps://www.blogger.com/profile/06518877494254023694noreply@blogger.comtag:blogger.com,1999:blog-3191291.post-51877655496995931852008-05-21T16:32:00.000-07:002008-05-21T16:32:00.000-07:00There's a way to avoid this.... you just have to s...There's a way to avoid this.... you just have to set a system property to tell it to go to the hosts file first.<BR/><BR/>But I forget the property :)<BR/><BR/>I always google for it when I do an OS X re-install which is like once every year and half.<BR/><BR/>For example:<BR/><BR/>sh-3.2# echo "127.0.0.1 fake.server.com" >> /etc/hosts<BR/>sh-3.2# ping fake.server.com<BR/>PING fake.server.com (127.0.0.1): 56 data bytes<BR/>64 bytes from 127.0.0.1: icmp_seq=0 ttl=64 time=0.058 ms<BR/><BR/>worked fine on my machine.<BR/><BR/>Anyway... maybe that helps save you a step.<BR/><BR/>It bothers me that OS X isn't really Unix.... it's more like an insane unix than anything else.<BR/><BR/>I'm thinking about going back to Linux myself :)burtonatorhttps://www.blogger.com/profile/08049781702053733725noreply@blogger.comtag:blogger.com,1999:blog-3191291.post-70008331987234684792008-05-21T13:29:00.000-07:002008-05-21T13:29:00.000-07:00Is this really necessary? I find new additions to ...Is this really necessary? I find new additions to /etc/hosts are usually available right after editing the file.Ahttps://www.blogger.com/profile/00719937976158831895noreply@blogger.com