[PHP] dns lookups only half working in chroot

2009-09-09 Thread Samuel Vogel
Hey guys, I am cross-posting this to the PHP and the PHP-FPM lists, because both are applicable in my opinion. I have got a strange problem with my php-fpm chrooted PHP environment. PHP is chrooted to /var/www/. /var/www/etc looks like this: # ls -al /var/www/etc/ insgesamt 20 drwxr-xr-x 2 ro

Re: [PHP] dns lookups only half working in chroot

2009-09-09 Thread Ben Dunlap
> echo gethostbyname('www.google.de')."\n"; > print_r(dns_get_record('www.google.de', DNS_A))."\n"; > ?> [8<] > I don't understand why the first lookup fails, but the second one succeeds. > Unfortunately thinks like fsockopen() seem to use the same technique as > gethostbyname(), so they don't wor