Solved

PHP - checkdnsrr - differences between "A, MX, NS, SOA, PTR, CNAME, AAAA, A6, SRV, NAPTR, TXT or ANY"

Posted on 2009-05-20
1
1,055 Views
Last Modified: 2012-06-27
Hi E's, I try to use the function checkdnsrr, but I don't know the differences between the $string Type of this function.
For try the function I used the code in snippet code, and I change the type for try, but the most of the times the return is true or false.

Can you explain the the differences (if some expert have a simple script where I can see the real differences, I apreciate).

Regards, JC
$ver = checkdnsrr("example.com", MX);
if ($ver == true){
	echo the domain exists;
	}

Open in new window

0
Comment
Question by:Pedro Chagas
1 Comment
 
LVL 30

Accepted Solution

by:
IanTh earned 250 total points
ID: 24435129
A = ip address
mx = mail server
ns = nameserver
soa = Start of Authority
http://support.microsoft.com/kb/163971
ptr = in arpa , reverse dns
cname = alias
aaaa = ip v6
a6 = ip v6
svr = backup mx

so your script will equal true if for instance example.com has an mx record set up
see http://quanta.sourceforge.net/docs/php/function.checkdnsrr.html 
0

Featured Post

NAS Cloud Backup Strategies

This article explains backup scenarios when using network storage. We review the so-called “3-2-1 strategy” and summarize the methods you can use to send NAS data to the cloud

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Password hashing is better than message digests or encryption, and you should be using it instead of message digests or encryption.  Find out why and how in this article, which supplements the original article on PHP Client Registration, Login, Logo…
Since pre-biblical times, humans have sought ways to keep secrets, and share the secrets selectively.  This article explores the ways PHP can be used to hide and encrypt information.
Learn how to match and substitute tagged data using PHP regular expressions. Demonstrated on Windows 7, but also applies to other operating systems. Demonstrated technique applies to PHP (all versions) and Firefox, but very similar techniques will w…
The viewer will learn how to create a basic form using some HTML5 and PHP for later processing. Set up your basic HTML file. Open your form tag and set the method and action attributes.: (CODE) Set up your first few inputs one for the name and …

809 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question