exp:expstaticdns
Check the DNS records of a custom domain for GitHub Pages: the A, AAAA and CNAME records compared with GitHub's addresses, and what to change.
Script bin/php/expstaticdns.php, code in kernel/private/classes/commands/expstaticdns.php. Run it from the installation root, as the user the web server runs as:
./console exp:expstaticdns --help
./console exp:static:dns --help
php bin/php/expstaticdns.php --helpHelp text
The DNS check of a custom domain for GitHub Pages
Looks the domain up and compares its records with what GitHub Pages needs: an apex domain
(example.com) has the four A records 185.199.108.153 to 185.199.111.153 (and, optionally, the
AAAA records), a subdomain (www.example.com) a CNAME to <owner>.github.io. It lists what to change.
The owner comes from --owner, or from the Remote of the target whose CustomDomain is the domain.
./console exp:static:dns www.example.com
./console exp:static:dns example.com --owner=se7enxweb --format=jsonOptions
| Option | Value | Help |
|---|---|---|
--owner | required | The GitHub account or organization that owns the repository (the CNAME must name <owner>.github.io) |
--format | required | text (default) or json (the machine output exp-static/1) |
Read from the option definitions in the code (startup(), getOptions(), options() or ezcConsoleOption). Every script also takes the standard options of the script framework (--help, --siteaccess, --debug, --quiet, --allow-root-user ...).
Arguments: [domain].
Related
Generated by ./console exp:help:examples from bin/php/expstaticdns.php, kernel/private/classes/commands/expstaticdns.php. Do not edit this page: change the source and generate again (how). Free documentation: GFDL 1.3 or later.