amneale / dns-updater
DNS updater
dev-main
2024-03-14 10:12 UTC
Requires
- php: ^8.2
- beberlei/assert: ^3.3
- guzzlehttp/guzzle: ^7.8
- jamesryanbell/cloudflare: ^1.11
- symfony/console: ^7
- toin0u/digitalocean-v2: ^4.9
Requires (Dev)
- ext-xdebug: *
- behat/behat: ^3.3
- friends-of-phpspec/phpspec-code-coverage: ^6.3
- friendsofphp/php-cs-fixer: ^3.51
- phpspec/phpspec: ^7.5
- roave/security-advisories: dev-master
This package is auto-updated.
Last update: 2024-11-06 15:36:29 UTC
README
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