Re: [PHP3] CheckDNSRR failing on a valid domain
| From: | Jason Brooke | Date: | Sun, 22 Aug 1999 09:18:39 +0000 |
| Subject: | Re: [PHP3] CheckDNSRR failing on a valid domain | ||
| References: | 1 | Groups: | php.dev |
| Request: | Send a blank email to php-dev+get-10074@lists.php.net to get a copy of this message | ||
> 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
If you do a whois on e-na.net you can get the name servers for it, then use
nslookup to see what records actually exist:
whois e-na.net shows the primary name server for e-na.net is
NS1.ADGRAFIX.COM
nslookup
> server NS1.ADGRAFIX.COM
Default Server: NS1.ADGRAFIX.COM
Address: 208.230.130.254
> set type=a
# Check for an A record:
> e-na.net
Server: NS1.ADGRAFIX.COM
Address: 208.230.130.254
Name: e-na.net
Address: 208.230.136.197
> set type=mx
# heck for an MX record on e-na.net (which is what you're asking Php to do)
> e-na.net
Server: NS1.ADGRAFIX.COM
Address: 208.230.130.254
*** No mail exchanger (MX) records available for e-na.net
>
# 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
mail.e-na.net preference = 10, mail exchanger = e-na.net
e-na.net nameserver = ns1.adgrafix.com
e-na.net nameserver = ns2.adgrafix.com
e-na.net nameserver = ns3.adgrafix.com
e-na.net internet address = 208.230.136.197
ns1.adgrafix.com internet address = 208.230.130.254
ns2.adgrafix.com internet address = 63.70.212.254
ns3.adgrafix.com internet address = 208.28.6.254
So according to nslookup diagnostics, the function is working correctly in
Php
jason