geraldvillorente / terminus-dig
Get the server public IP address.
Installs: 36
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 5
Forks: 3
Open Issues: 0
Type:terminus-plugin
Requires (Dev)
- doctrine/instantiator: 1.0.5
- phpdocumentor/reflection-docblock: 3.2.2
- phpunit/phpunit: ^4.8.36
- squizlabs/php_codesniffer: ^3.6
- symfony/polyfill-ctype: v1.19.0
- symfony/yaml: v3.4.47
- webmozart/assert: 1.9.1
README
A Terminus plugin for inspecting DNS records.
For appservers or dbservers
To get the appserver IP address:
terminus dig:server <site>.<env>
To get the dbserver IP address:
terminus dig:server <site>.<env> --server=dbserver
To get the first IP address only:
terminus dig:server <site>.<env> | head -n 1
For domains
To get the A record (default):
terminus dig:domain --domain=pantheon.io
To get the AAAA records:
terminus dig:domain --domain=domain.com --type=AAAA
To get the custom domain CNAME:
terminus dig:domain --domain=google.com --type=CNAME
To get the custom domain MX:
terminus dig:domain --domain=google.com --type=MX
Installation
For Terminus 2 and below, you can install like this:
$ cd ~/.terminus/plugins
$ git clone https://github.com/pantheon-systems/terminus-dig.git
For Terminus 3, you can install like this:
$ terminus self:plugin:install geraldvillorente/terminus-dig
Or like this:
$ git clone https://github.com/pantheon-systems/terminus-dig.git
$ terminus self:plugin:install terminus-dig