узнать forward dns lookup на php

Discussion in 'PHP' started by dondy, 14 Dec 2015.

  1. dondy

    dondy Member

    Joined:
    5 Jun 2015
    Messages:
    560
    Likes Received:
    61
    Reputations:
    5
    Reverse dns lookup на php узнаю вот так:

    Code:
    <?php
    $hostname = gethostbyaddr($_SERVER['REMOTE_ADDR']);
    
    echo $hostname;
    ?>
    а как узнать forward dns через php ?
     
  2. Kaimi

    Kaimi Well-Known Member

    Joined:
    23 Aug 2007
    Messages:
    1,732
    Likes Received:
    811
    Reputations:
    231
    gethostbyname
     
    _________________________
    dondy likes this.