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,022 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

Do You Know the 4 Main Threat Actor Types?

Do you know the main threat actor types? Most attackers fall into one of four categories, each with their own favored tactics, techniques, and procedures.

Join & Write a Comment

Popularity Can Be Measured Sometimes we deal with questions of popularity, and we need a way to collect opinions from our clients.  This article shows a simple teaching example of how we might elect a favorite color by letting our clients vote for …
Both Easy and Powerful How easy is PHP? http://lmgtfy.com?q=how+easy+is+php (http://lmgtfy.com?q=how+easy+is+php)  Very easy.  It has been described as "a programming language even my grandmother can use." How powerful is PHP?  http://en.wikiped…
Explain concepts important to validation of email addresses with regular expressions. Applies to most languages/tools that uses regular expressions. Consider email address RFCs: Look at HTML5 form input element (with type=email) regex pattern: T…
The viewer will learn how to count occurrences of each item in an array.

762 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

Need Help in Real-Time?

Connect with top rated Experts

19 Experts available now in Live!

Get 1:1 Help Now