Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

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,138 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

Question has a verified solution.

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

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 …
I imagine that there are some, like me, who require a way of getting currency exchange rates for implementation in web project from time to time, so I thought I would share a solution that I have developed for this purpose. It turns out that Yaho…
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 …

688 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