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

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

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…
This article discusses how to create an extensible mechanism for linked drop downs.
This tutorial will teach you the core code needed to finalize the addition of a watermark to your image. The viewer will use a small PHP class to learn and create a watermark.
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 …

830 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