I'm using a Mac Book Pro running Mountain Lion 10.8.2.
Using Xcode I tried to test my app and found an alert box saying a string 'localhost' was not found. Tried to ping localhost and found that the DNS can't resolve this domain. I don't know if it's related but since a few weeks ago I can't use network printers hosted on Windows computers. OS X sees the workgroup and list computers but when I try to connect it throws an error telling the IP is wrong or the connection is lost.
Even stranger is the fact that ping can resolve localhost. (with the dot at the end).
Any help with either of this two issues??