amneale/dns-updater

dev-main 2024-03-14 10:12 UTC

README

GitHub Workflow Status Code Climate Test Coverage

Install

Via Composer

$ composer require amneale/dns-updater

Usage

Updating the base A record for a domain using automatic IP resolution

$ bin/update-dns domain.name @

Updating a record type (e.g. CNAME) with a given value

$ bin/update-dns domain.name www --type=CNAME value=domain.name

Updating an A record with no interaction and no output (e.g. for a CRON job)

$ bin/update-dns domain.name test --adapter=digitalocean --params=<DIGITAL_OCEAN_ACCESS_TOKEN> --quiet

For more information about available options, run

$ bin/update-dns --help

Testing

Both phpspec and behat are used to test this library.

$ make test