What's in /etc/hosts ?
127.0.0.1 localhost localhost.mydomain.com devbox.mydomain.com
That's what I have for localhost, works pretty nicely (FreeBSD 4.3).
-Mitch
----- Original Message -----
From: "Vince Vielhaber" <vev@michvhf.com>
To: <pgsql-php@postgresql.org>
Sent: Tuesday, July 10, 2001 11:02 AM
Subject: [PHP] Anyone using thttpd?
>
> I just set up thttpd on FreeBSD 4.2 with php and postgresql. Everything
> is working except name resolution. I have to specify host in my connect
> string, even tho it's the localhost, but I can't even just say localhost
> I have to give it 127.0.0.1. I get unknown host errors. Giving it a
> name of another machine won't resolve either, I have to provide the IP of
> the host. If I move the php script to the apache server host=localhost
> works fine (although I still have to specify the host).
>
> The machine has no problems with forward and reverse dns from the command
> line and the perms on /etc/resolv.conf are fine (got burned by an HP once
> with that).
>
> Anyone have any ideas?
>
> Vince.
> --
> ==========================================================================
> Vince Vielhaber -- KA8CSH email: vev@michvhf.com http://www.pop4.net
> 56K Nationwide Dialup from $16.00/mo at Pop4 Networking
> Online Campground Directory http://www.camping-usa.com
> Online Giftshop Superstore http://www.cloudninegifts.com
> ==========================================================================
>
>
>
>
> ---------------------------(end of broadcast)---------------------------
> TIP 1: subscribe and unsubscribe commands go to majordomo@postgresql.org
>