★ wanayoo — archive 1999 http://www.php.net/manual/function.checkdnsrr.phpNouvelle recherche | Portail wanayoo

PHP Home Page

Manual Table of Contents
Up to Network
Quick Reference
German version of this pageJapanese version of this pageItalian version of this pageFrench version of this pageHungarian version of this page
Network
* checkdnsrr
* closelog
* debugger_off
* debugger_on
* fsockopen
* gethostbyaddr
* gethostbyname
* gethostbynamel
* getmxrr
* getprotobyname
* getprotobynumber
* getservbyname
* getservbyport
* openlog
* pfsockopen
* socket_set_blocking
* syslog
* ip2long
* long2ip
Manual: checkdnsrr
View the source code for this pageSearch the site



Previous page
 Network
 Updated
Sat, 12 Aug 2000
closelog 
Next page


checkdnsrr

(PHP3 , PHP4 )

checkdnsrr --  Check DNS records corresponding to a given Internet host name or IP address

Description

int checkdnsrr (string host [, string type])

Searches DNS for records of type type corresponding to host. Returns true if any records are found; returns false if no records were found or if an error occurred.

type may be any one of: A, MX, NS, SOA, PTR, CNAME, or ANY. The default is MX.

Host may either be the IP address in dotted-quad notation or the host name.

See also getmxrr(), gethostbyaddr(), gethostbyname(), gethostbynamel(), and the named(8) manual page.


User Contributed Notes: checkdnsrr


rdahlin@moranet.se
26-Nov-1999 09:03
I'd like to have the possability to choose which DNS server to use when using the DNS functions.
Is there any plans to include that feature in V4 ??



marek@welshdragon.com
13-Jan-2000 07:05
edit your resolv.conf file


oli@isnet.is
27-Jan-2000 06:59
Sometimes you might need to look up records in another server than your machine normally uses, so changing the resolv.conf file is not allways an option.


cshenton@uucom.com
07-Mar-2000 09:03
Where is the time-we-wait-for-answer set? I'd like to be able to specify a maximum time to wait for resolution and return FALSE/NULL if no response received in that time. Large sets of queries (e.g. validating email address hosts) cat take a *long* time due to brain damaged remote DNS, network congestion, etc.


bobie@sylaba.poznan.pl
17-Mar-2000 10:32
How to implement this function to dig in in DNS database (jumping to authoritative answer to find out if given $domain exists in whole DNS.
I mean 'nslookup' functionality. ???
<pre>checkdns($domain, 'NS');</pre>
but it looks only on my server...



przemekb@inet.com.pl
29-Mar-2000 03:30
why such code:
if ( checkdnsrr($domen)) echo ("registered");
doesn't work on NT systems - in return there is allways information that domain is not registered (for every domain)

script works fine on UNIX systems



 About Notes


Previous page
 Network
 Updated
Sat, 12 Aug 2000
closelog 
Next page





Who's responsible for this?
Top of this page

Site
Hosting:



Located in
United States
Elements of this website are subject to copyright.
Questions about installing or using PHP should be directed to one of the mailing lists.
Only questions about the website should be directed to webmaster@php.net.