gethostbyname($domain);

 

Reference : http://th2.php.net/manual/en/function.gethostbyname.php