2

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....

daveyfaherty
  • 4,394
  • 2
  • 22
  • 39
Fedrick
  • 527
  • 2
  • 8
  • 26
  • Restart the browser? Perhaps it keeps its own DNS cache. – RichieHindle Aug 09 '11 at 08:41
  • What did you add to `/etc/hosts` and what sort of error do you get from the browser? Which browser, Safari? What does the URL look like? – tripleee Aug 09 '11 at 08:50
  • Hi Thanks for you response,I got the problem resolved,it is the problem with our internal network proxy,i disabled the proxy – Fedrick Aug 10 '11 at 06:03

0 Answers0