Re: [PHP] Reverse DNS testing

2012-07-12 Thread Al
On 7/12/2012 3:58 PM, David OBrien wrote: On Jul 12, 2012, at 2:17 PM, Al wrote: I want to do a rDNS check on a admin entered host name to insure in-coming mail servers don't reject mail, sent by my app, because the rDNS doesn't exist or doesn't match. Here is the fundamental code: $host

Re: [PHP] Reverse DNS testing

2012-07-12 Thread Al
On 7/12/2012 3:09 PM, Jim Lucas wrote: On 07/12/2012 11:17 AM, Al wrote: I want to do a rDNS check on a admin entered host name to insure in-coming mail servers don't reject mail, sent by my app, because the rDNS doesn't exist or doesn't match. Here is the fundamental code: $host = $_SERVER[

Re: [PHP] Reverse DNS testing

2012-07-12 Thread David OBrien
On Jul 12, 2012, at 2:17 PM, Al wrote: > I want to do a rDNS check on a admin entered host name to insure in-coming > mail servers don't reject mail, sent by my app, because the rDNS doesn't > exist or doesn't match. > > Here is the fundamental code: > > $host = $_SERVER['SERVER_NAME']; //sit

Re: [PHP] Reverse DNS testing

2012-07-12 Thread Jim Lucas
On 07/12/2012 11:17 AM, Al wrote: I want to do a rDNS check on a admin entered host name to insure in-coming mail servers don't reject mail, sent by my app, because the rDNS doesn't exist or doesn't match. Here is the fundamental code: $host = $_SERVER['SERVER_NAME']; //site name shared or not

[PHP] Reverse DNS testing

2012-07-12 Thread Al
I want to do a rDNS check on a admin entered host name to insure in-coming mail servers don't reject mail, sent by my app, because the rDNS doesn't exist or doesn't match. Here is the fundamental code: $host = $_SERVER['SERVER_NAME']; //site name shared or not $ip = gethostbyname($host); $hos