View Full Version : [ubuntu] localhost not found????

March 4th, 2009, 07:01 PM
Hi All:
I'm running Ubuntu 8.04 on a system that connects to our office network via DHCP.
I've written a program that uses BOOST ASIO (ver 1.37.0) to create a UDP socket on the loopback address (
When the system is connected to the network all is well.
When I disconnect from the network, BOOST is complaining that it can't resolve the host.
The error message "Exception: Host not found (authoritative)".
If I run the command "host localhost" while disconnected, I get the following reply: "connection timed out, no servers could be reached"
Is there a way to have the system look into my /etc/hosts file first? Is this in resolv.conf?