|
Checking for the MX is only important if you are going to actually deliver the message. Checking for the A or CNAME record should be sufficient to check to see if a domain is valid or not.
It's possible to set up a domain with no A or CNAME record if you're going to use is purely for the purposes of e-mail. If you don't look up the MX records, you'll get a "domain invalid" for some valid domains.
That's where this discussion started. Jon Paris was having problems validating domains (he was using gethostbyname() which looks up the host table, A or CNAME records) some domains that were valid were failing their lookups because he wasn't looking for MX records.
As an Amazon Associate we earn from qualifying purchases.
This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].
Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.