Re: Why does checkdnsrr() default to MX??

From: Date: Fri, 19 Sep 2014 09:58:19 +0000
Subject: Re: Why does checkdnsrr() default to MX??
References: 1  Groups: php.internals 
Request: Send a blank email to internals+get-77331@lists.php.net to get a copy of this message
On 18 September 2014 20:29, Kris Craig <kris.craig@gmail.com> wrote: > Hey guys, > > I just spent some time troubleshooting what appeared to be a DNS issue > before I realized that, absent the optional $type argument, checkdnsrr() > defaults to "MX". Can anybody explain why it's defaulting to "MX" and > not > "ANY"? It seems really counter-intuitive. > > --Kris This is a big wtf, especially since getmxrr() exists. A cursory search of github (not the best measure I know, but easy) reveals only a few cases where this function is called without the second argument, and every case I've found looks like they were expecting an A record, so this code is likely broken anyway. In other words, +1 to change this to something saner ASAP.

« previous php.internals (#77331) next »