checkdnsrr

checkdnsrr

(PHP 3, PHP 4, PHP 5)

checkdnsrr --  Chequea registros DNS correspondientes a un nombre de host o direcci贸n IP de Internet dado

Descripci贸n

int checkdnsrr ( string host [, string tipo] )

Realiza una b煤squeda DNS por registros del tipo tipo correspondientes a host. Devuelve TRUE si se encuentra alg煤n registro, devuelve FALSE si no se encontraron registros o si un error ha ocurrido.

tipo puede ser un valor cualquiera entre: A, MX, NS, SOA, PTR, CNAME, AAAA, A6, SRV, NAPTR o ANY. El valor predeterminado es MX.

host puede ser la direcci贸n IP en notaci贸n cuaternio-puntuado o el nombre del host.

Nota: El tipo AAAA fue agregado con PHP 5.0.0

Nota: Esta funci贸n no est谩 implementado en plataformas Windows. Intente con la clase de PEAR Net_DNS.

Vea tambi茅n dns_get_record(), getmxrr(), gethostbyaddr(), gethostbyname(), gethostbynamel(), y la p谩gina de manual named(8).