Is it possible to test when a site has propagated?

@Gandalf, Many thanks.

I checked PHP dns_get_record() and used the following:

PHP gethostbyname()

PHP Function:

# http://php.net/manual/en/function.gethostbyname.php
function sites() 
{
  $result = NULL;

  ##  SITES PROPAGATED 
  if( isset($_GET['propagated']) ):
    $sites = [
      'example.com',
      'site-001.com',
      'site-002.com',
      'site-003.com',
      'johns-jokes.com',
      'amazon.com', 
      'bing.com', 
      'facebook.com',
      'google.com', 
      'sitepoint.com',
      'yahoo.com', 
    ];
    # GET STATUS 
      foreach($sites as $id => $site):
        $ipn = gethostbyname($site);
        if('139.162.244.63' === $ipn):
          $ok[] = ' <a href="//' .$site .'">' .$site .'</a>';
        else:
          $bad[]  = '<td> <a href="//' .$site .'">' .$site .'</a> </td>'
                  . '<td>' .$ipn .'</td>';
        endif;  
      endforeach;

    echo '<dl class="clb w88 mga bgs tal dib">';
      echo '<dt class="fs2"><b>Propagated Successfully: </b></dt>';
        echo '<dd>';
          foreach( $ok as $url ): echo $url .'<br>'; endforeach;
        echo '</dd>';
      echo '<br><br>';  

      echo '<dt class="warn">Pending Propagation: <b>104.238.188.234</b></dt>';
      echo '<dd class="warn">';
        echo '<table class="bge"><tr class="fwb fs2 tac"><th>site</th><th>IPN</th></tr>';
          foreach( $bad as $url ): 
            echo '<tr>';
              echo $url; 
            echo '</tr>';
          endforeach;
          echo '</table>';  
      echo '</dd>';
    echo '</dl>';
  endif;  
}

Live Demo (with source)

Edit:
Using this function is far better than seeing a representation of the global router results.

The function tests whether the relevant sites have been propagated to my server and reduces the possibilities of where the actual problem arises if the site does not render.

I was surprised at the difference amount of time the sites took to propagate. Some were very quick (only minutes) while others (Godaddy) took hours :frowning:

The Internet has certainly improved since the recommended wait time used to be about 48 hours.

Edit:
Added Output

Output

Propagated Successfully:
johns-jokes.com


Pending Propagation: 
Site            IPN
example.com     93.184.216.34
site-001.com	site-001.com
site-002.com	site-002.com
site-003.com	site-003.com
amazon.com	    176.32.103.205
bing.com	    13.107.21.200
facebook.com	31.13.90.36
google.com	    216.58.213.78
sitepoint.com	54.148.84.95
yahoo.com	    206.190.39.42

1 Like