Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

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

Posted on 2009-05-20
1
Medium Priority
?
1,153 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 1000 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

Keep up with what's happening at Experts Exchange!

Sign up to receive Decoded, a new monthly digest with product updates, feature release info, continuing education opportunities, and more.

Question has a verified solution.

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

Foreword (July, 2015) Since I first wrote this article, years ago, a great many more people have begun using the internet.  They are coming online from every part of the globe, learning, reading, shopping and spending money at an ever-increasing ra…
Part of the Global Positioning System A geocode (https://developers.google.com/maps/documentation/geocoding/) is the major subset of a GPS coordinate (http://en.wikipedia.org/wiki/Global_Positioning_System), the other parts being the altitude and t…
The viewer will learn how to count occurrences of each item in an array.
The viewer will learn how to look for a specific file type in a local or remote server directory using PHP.
Suggested Courses

926 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