I have added a hostname in the /etc/hosts/ file in Mac OSX,when i try to run the URL with the hostname in the browser i couldn't able to access it , but when i try to access it with IPAddress I could able to access it.
Observations: 1)I can able to ping both IPAddress and hostname added to /etc/hosts file 2)I can able to access the URL with IPAddress but not with hostname 3)I tried flushing the dns Cache with following command
dscacheutil -flushcache
4)I can able to access URL with hostname in windows machine.
So I appreciate any suggestions about what might have gone wrong....
Thanks in advance....