Re: QuickForm - E-Mail validation with checkdnsrr() - subdomains
| From: | Markus Ernst | Date: | Thu, 11 Feb 2010 11:15:24 +0000 |
| Subject: | Re: QuickForm - E-Mail validation with checkdnsrr() - subdomains | ||
| References: | 1 2 3 | Groups: | php.pear.general php.pear.general |
| Request: | Send a blank email to pear-general+get-30280@lists.php.net to get a copy of this message | ||
Mark Steudel schrieb:
Something else to try would be to test the subdomain with the checkdnsrr function outside of that email function. Depending on how DNS is setup, it's possible that the subdomain isn't actually an A record but a CNAME and is therefore returning false. If you look at the two checks, it only checks that it's a MX record or A record ...Thank you for this hint. I now tried checkdnsrr($domain, "CNAME"), which returned false for both main domain and sub domain, and checkdnsrr($domain) without the type argument, which behaves the same as checking with "MX" and "A" type arguments. It looks like in this special case, mails to addresses *@subdomain.maindomain.tld are handled internally by the server at maindomain.tld, without any handling at DNS level.