getmxrr

getmxrr -- Obtiene registros MX correspondientes a una máquina conectada a Internet.

Descripción

int getmxrr ( string hostname, array mxhosts [, array weight])

Busca DNS de registros MX correspondientes a hostname . Devuelve verdadero si encuentra alg£n registro ; devuelve falso si no encuentra ninguno o se produce un error .

La lista de registros MX encontrados se colocan en el array mxhosts . Si se proporciona el array weight , se rellenará con la información obtenida .

Ver también checkdnsrr( ) , gethostbyname( ) , gethostbynamel( ) , gethostbyaddr( ) , y named(8 ) de las páginas del manual .