Forum und email

getmxrr

(PHP 4, PHP 5)

getmxrr — Ottiene i record MX corrispondenti a un dato nome di host Internet

Descrizione

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

Cerca nel DNS i record MX corrispondenti a hostname . Restituisce TRUE se ne vengono trovati. Restituisce FALSE se non ne vengono trovati o se avviene un errore.

La lista di record MX trovati viene messa nell'array mxhosts . Se viene indicato l'array weight , esso viene riempito con le informazioni ottenute sui vari pesi.

Vedere anche checkdnsrr(), gethostbyname(), gethostbynamel(), gethostbyaddr()e la pagina man named(8).