I ran into this issue setting up zencart on OpenBSD. My guess is you need
to copy /etc/resolv.conf to /var/www/etc/resolv.conf.
You can verify that by chroot'ing yourself manually into /var/www and
trying to curl something.
That's what I thought so, too at first, but I verified that ours is
there. (Copying resolv.conf into the chroot is part of our standard
server setup.) Here's what in that directory now:
$ ls -l /var/www/etc/
total 4
-rw-r--r-- 1 root daemon 85 Nov 21 14:51 resolv.conf
Thanks though. :-)