webCOMAND

client Configuration

The client configuration options define default client options to use, when not specified for a request explicitly.

  • dns_servers - An array of DNS name server IPs to use to resolve the URL hostname.  They will be attempted in the order provided and the request will only fail if each name server could not resolve the address.  CNAMEs will be resolved automatically.  Internally, this will use the CURLOPT_DNS_SERVERS option if available, but it will use it's own process when that option is not available, which is typical.  This option can also be configured per request with the dns_servers option.

To override defaults, add something similar to the following section to the COMAND Configuration.

<?php
/**
 * COMAND Configuration.
 */
$config = [
    'io_comand_web' => [
        'client' => [
            'dns_servers' => [
                '8.8.8.8', // Google
                '1.1.1.1', // Cloudflare
                '8.8.4.4', // Google
            ]
        ]
    ]
];