PHPでホスト名(host)からIPアドレスを取得する方法は下記の通りです。
PHPの「gethostbyname()関数」を用いると、ホスト名からIPアドレスが取得できます。
<?php echo gethostbyname('www.google.co.jp'); ?>
上記スクリプトを実行すると、IPアドレスが表示されます。
Name (required)
Mail (will not be published) (required)
Website