Artisan commands
Artisan commands
Each command is a thin adapter: it resolves the container-bound Cbox\Dns\Dns
and renders the result. Exit codes are CI-friendly.
dns:lookup
php artisan dns:lookup {host} {type=A}
Renders a table of the records (name, type, TTL, priority, value). An unknown
record type exits non-zero; a name with no records of the type exits 0 with a
notice.
dns:verify
php artisan dns:verify {domain} {token}
Prints the challenge host and whether the token verifies authoritatively. Exits
0 when verified, 1 otherwise.
dns:diagnose
php artisan dns:diagnose {domain}
Runs the diagnostics catalog and prints findings grouped by category with a
colored severity badge (ERROR / WARNING / INFO). Exits 1 when the report
has errors, 0 otherwise.
dns:propagation
php artisan dns:propagation {host} {type} {zone} {--all}
Compares the authoritative record set against the public-resolver panel and
prints a per-resolver table (agree / pending) plus the overall status.
--all queries the full named provider registry. Exits 1 when the record is
MISCONFIGURED (no authoritative answer), 0 otherwise.
dns:dnssec
php artisan dns:dnssec {domain}
Validates the DNSSEC chain from the root down and prints the state
(SECURE / INSECURE / BOGUS) with the reason. Only BOGUS exits 1 —
INSECURE is a legitimate, authenticated "this zone is unsigned".