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) and made changes to the hosts file, and also in /private/etc/hosts is the same. The files have 644 permissions.
192.168.0.50 mysite1.local
192.168.0.50 mysite2.local
I flushed my dnscache
sudo dscacheutil -flushcache
I rebooted the machine, reset Safari but still no changes.. Still if I try to go either mysite1.local or mysite2.local, it is pointing to localhost!
When I run
dscacheutil -q host -a name mysite1.local
It returns name: mysite1.local ip_address: 127.0.0.1
two times and if I do the same for mysite2.local, it returns name: mysite2.local ip_address: 127.0.0.1
only once.
What could be the problem?
OS is Snow Leopard 10.6.8
/etc/hosts
file permissions are 644. When I ran your command mysite1.local putsname: mysite1.local ip_address: 127.0.0.1
two times and mysite2.local putsname: mysite2.local ip_address: 127.0.0.1
one time.. weird!? Without.local
I get nothing??