MX Records reliable

Daniel teletautala at gmail.com
Thu Apr 5 15:49:04 MDT 2007


I found out how to check for an A and MX record using php's checkdnsrr
( string $host [, string $type] ).
Q1. Are A and MX records the only ones I need to look for?
Q2. Is there an email address I can use to test this with?

-Daniel

On 4/5/07, Steve <smorrey at gmail.com> wrote:
> A lot of people with for instance personal domain names, such as
> myname.name don't know enough to setup an MX record.
> In many cases if an mx cannot be found the email system will query the
> nameserver for an A record and pass the mail to that server.  So I
> would do a double check.  First check to see if there is an MX record
> and if that fails then check for an A record.
>
> On 4/5/07, Stuart Jansen <sjansen at buscaluz.org> wrote:
> > On Thu, 2007-04-05 at 15:16 -0600, Daniel wrote:
> > > I have a form where people can submit feedback to the webmaster.  I
> > > want to make sure I can reply to the patron.  Would I get most of my
> > > patrons verified if I check for an MX Record for the email address
> > > they provide?
> >
> > As long as you're willing to accept that some people will get mad
> > because their domain only publishes an A record or their DNS is
> > temporarily unreachable. The first is technically incorrect and the
> > second might not be your fault, but you might want to think carefully
> > about what to do if the test fails. Maybe allow the address anyway, but
> > warn the user "Please double check your email address. It may be wrong,
> > or the Internet might have hiccuped."
> >
> > --
> > Stuart Jansen              e-mail/jabber: sjansen at buscaluz.org
> >                            google talk:   stuart.jansen at gmail.com
> >
> > "However beautiful the strategy, you should occasionally look at
> > the results." -- Winston Churchill
> >
> >
> > /*
> > PLUG: http://plug.org, #utah on irc.freenode.net
> > Unsubscribe: http://plug.org/mailman/options/plug
> > Don't fear the penguin.
> > */
> >
> >
>
> /*
> PLUG: http://plug.org, #utah on irc.freenode.net
> Unsubscribe: http://plug.org/mailman/options/plug
> Don't fear the penguin.
> */
>



More information about the PLUG mailing list