Re: [PHP3] CheckDNSRR failing on a valid domain
| From: | Manuel Lemos | Date: | Sun, 22 Aug 1999 06:29:28 +0000 |
| Subject: | Re: [PHP3] CheckDNSRR failing on a valid domain | ||
| References: | 1 | Groups: | php.dev |
| Request: | Send a blank email to php-dev+get-10075@lists.php.net to get a copy of this message | ||
Hello Jason,
On 22-Aug-99 09:18:39, you wrote:
>> Hello,
>>
>> I have been trying to use CheckDNSRR and GetMXRR to validate e-mail
>> addresses. I have just realized that these calls fail when checking
>> the top level domain e-na.net . However they succeed on checking
>> www.e-na.net and even point e-na.net as MX host for it.
>>
>> I wonder how could this be because I am able to send a message to
>addresses
>> like mlemos@e-na.net .
>>
>> Anyway, if these calls may fail this way on valid mail hosts I'm afraid
>> the functions are useless for the purpose of verifying e-mail addresses.
>>
>> Anybody with knowledge in the subject would care to give some light on the
>> matter?
>They seem to work fine for me - remember they returns records for a host,
>not for a domain, as explained in the manual
Either e-na.net and www.e-na.net are virtual hosts with the same IP that
are hosted in whoopi.adgrafix.com .
>> e-na.net
>Server: NS1.ADGRAFIX.COM
>Address: 208.230.130.254
>*** No mail exchanger (MX) records available for e-na.net
Right, but I may send messages to mlemos@e-na.net and they get delivered.
How can I determine if mlemos@e-na.net is a valid address then.
># Now check for MX record on mail.e-na.net (that's the first hostname I'd
>try and guess)
>> mail.e-na.net
>Server: NS1.ADGRAFIX.COM
>Address: 208.230.130.254
Interesting, I own that domain and I was not told by the ISP that there
would be a mail.e-na.net sub-domain.
But, is there any rule/RFC that tells to look for mail.domain when you
don't find a MX record, or was that a logic guess that you made?
What I really want is to validate e-mail addresses that users of my sites
provide to make sure that they don't fake them. So, if you want to do
that, given the current PHP command set, what would you do to detect fake
addresses besides matching the address against a e-mail address regular
expression (I already do this?)
Regards,
Manuel Lemos
Web Programming Components using PHP Classes.
Look at: http://phpclasses.UpperDesign.com/?user=mlemos@acm.org
--
E-mail: mlemos@acm.org
URL: http://www.mlemos.e-na.net/
PGP key: http://www.mlemos.e-na.net/ManuelLemos.pgp
--