Re: [PHP] PHP DNS resolving in chroot-ed environment

2010-09-27 Thread Per Jessen
Georgi Hristozov wrote: > Hello, > > I'm running a Gentoo-hardened box with PHP 5.2.14-pl0-gentoo (Suhosin > included) and Apache 2.2.16. mod_php is running in a chroot, using > mpm_peruser. Everything works OK, except the PHP DNS resolving, which > I need to access HTTP r

[PHP] PHP DNS resolving in chroot-ed environment

2010-09-27 Thread Georgi Hristozov
Hello, I'm running a Gentoo-hardened box with PHP 5.2.14-pl0-gentoo (Suhosin included) and Apache 2.2.16. mod_php is running in a chroot, using mpm_peruser. Everything works OK, except the PHP DNS resolving, which I need to access HTTP resources. It fails with both the curl and http exten

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

[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

[PHP] DNS query in ldap_search

2008-02-11 Thread Jan Müller
Hi, I have a strange problem here. I try to authenticate users with LDAP at an Active Directory Server (AD). Everything works fine. Just in some cases, authentication is not possible. As we discovered, this has something to do with a strange DNS Server setting. Sometimes a nslookup for the (imagin

RE: [PHP] DNS lookup w/ php

2007-01-15 Thread Jay Blanchard
[snip] If I wanted to determine whether a domain has set up mx records, how could I accomplish this with PHP? [/snip] RTFM http://us3.php.net/manual/en/function.dns-get-mx.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] DNS lookup w/ php

2007-01-15 Thread Russell Jones
If I wanted to determine whether a domain has set up mx records, how could I accomplish this with PHP?

Re: [PHP] DNS lookups only sometimes

2005-10-07 Thread Jadel Menard
Thank you for your reply. > You'd first have to show us the source code that does the email checks. > In addition, see if you can dig out the httpd.conf and php.ini that > are used on the production server, and post links to them, after > removing any data you consider sensitive.

Re: [PHP] DNS lookups only sometimes

2005-10-07 Thread Richard Lynch
On Fri, October 7, 2005 2:54 pm, Jadel Menard wrote: > > I have an email validation script written in PHP that works on most > Apache machines I try it on, with the exception (of course) of my > production > box that it needs to go on. This production machine is a Slackware > 10.2 box, > run

[PHP] DNS lookups only sometimes

2005-10-07 Thread Jadel Menard
I have an email validation script written in PHP that works on most Apache machines I try it on, with the exception (of course) of my production box that it needs to go on. This production machine is a Slackware 10.2 box, running Apache 1.33 and PHP 4.4.0. The script works if I c

RE: [PHP] DNS-less Connections With PHP?

2002-05-29 Thread Ed Gorski
Yes you really need to indicate what version of php you are using, what server you are using and what db you are using if you ever need to ask for help. Go to www.php.net and read up on: SQL SERVER mssql_connect() MYSQL mysql_connect() MOST obdc_connect() ORACLE ora_plogon() ed At 06:45 A

RE: [PHP] DNS-less Connections With PHP?

2002-05-29 Thread Jay Blanchard
[snip] Could anybody explain to me (or even give me a link to a place explaining) the creation of "DSN-less" connections? I've extensivly searched Google with this, but I couldn't find anything that was of any help to me. I know how to do this in ASP, though... [/snip] PHP does not use the concep

[PHP] DNS-less Connections With PHP?

2002-05-28 Thread Dr. Shim
Could anybody explain to me (or even give me a link to a place explaining) the creation of "DSN-less" connections? I've extensivly searched Google with this, but I couldn't find anything that was of any help to me. I know how to do this in ASP, though... -- PHP General Mailing List (http://www

Re: [PHP] DNS

2002-03-23 Thread Jason Wong
On Sunday 24 March 2002 07:26, Liam wrote: > 23/03/2002 11:26:39 PM > > Hi, err, I realise this has nothing to do with PHP but... > > I am in desperate need of a backup DNS host. I've scoured > the internet and I can't find anyone who'll be my backup DNS. > I'm willing to exchange the favour and

[PHP] DNS

2002-03-23 Thread Liam
23/03/2002 11:26:39 PM Hi, err, I realise this has nothing to do with PHP but... I am in desperate need of a backup DNS host. I've scoured the internet and I can't find anyone who'll be my backup DNS. I'm willing to exchange the favour and be your backup DNS. If there's any place you know I c

[PHP] dns

2001-12-19 Thread LaserJetter
Is there a way to set up a php page to act as a name server under windows? I dont have named etc on that OS. I was thinking of maybe having PHP read from the port used for DNS services and recording the MAC address of the machine in a dateabse for example and linking this to a name i.e. server.my

[PHP] DNS Checking and lookup

2001-09-22 Thread Chris Sacks
Hi, Is there anyway I can use PHP to find out all the information in a DNS Zonefile on a DNS server, in win2k, if you go to a dos prompt, and do the following nslookup server ls -d you will get loads of information on that domain name, like SOA Records, A records, MX records, CNAME record

Re: [PHP] DNS Lookups Fail

2001-02-26 Thread php3
Addressed to: "Scott Rothgaber" <[EMAIL PROTECTED]> [EMAIL PROTECTED] ** Reply to note from "Scott Rothgaber" <[EMAIL PROTECTED]> Mon, 26 Feb 2001 12:46:08 -0500 > > On 26 Feb 2001, at 10:21, [EMAIL PROTECTED] wrote: > > > The first thing to try is get a list of the host names that

Re: [PHP] DNS Lookups Fail

2001-02-26 Thread php3
Addressed to: "Scott Rothgaber" <[EMAIL PROTECTED]> [EMAIL PROTECTED] ** Reply to note from "Scott Rothgaber" <[EMAIL PROTECTED]> Mon, 26 Feb 2001 09:45:42 -0500 > > PHP 4.0.4 pl1, Apache 1.3.17, BSD/OS 4.1 pl37 > > Good Morning! > > Please forgive me if this has been covered ad na

[PHP] DNS Lookups Fail

2001-02-26 Thread Scott Rothgaber
PHP 4.0.4 pl1, Apache 1.3.17, BSD/OS 4.1 pl37 Good Morning! Please forgive me if this has been covered ad nauseum, but I have searched high and low for an answer with no luck. After building PHP as a module, following the online instructions, Apache complained that it could not resolve hostn