PHP code example of orlo / dns-hostname-expansion

1. Go to this page and download the library: Download orlo/dns-hostname-expansion library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

orlo / dns-hostname-expansion example snippets


 
s = \Orlo\DnsHostnameExpansion\DNSLookup::expandFromDnsALookup("my.host.name", "https://", "9200);

// e.g. ["https://1.2.3.4:9200","https://1.2.3.5:9200"]