https://github.com/thbkrkr/ons
Manage OVH DNS
https://github.com/thbkrkr/ons
Last synced: 2 months ago
JSON representation
Manage OVH DNS
- Host: GitHub
- URL: https://github.com/thbkrkr/ons
- Owner: thbkrkr
- Created: 2016-04-26T00:52:29.000Z (about 10 years ago)
- Default Branch: master
- Last Pushed: 2017-04-03T21:03:35.000Z (over 9 years ago)
- Last Synced: 2025-01-13T05:07:52.039Z (over 1 year ago)
- Language: Go
- Size: 1.03 MB
- Stars: 4
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# ons
```
Utility to manage OVH DNS zone.
Usage:
ons COMMAND [arg...]
Available Commands:
add Plan to add a record
apply Changes DNS
ls List all DNS records of the zone
plan Show the execution plan
rm Plan to remove records matching a sub domain
Environment variables required:
ONS_ZONE
ONS_ENDPOINT, ONS_AK, ONS_AS, ONS_CK
```
## Setup
mkdir dns
# set credentials
echo 'ONS_ZONE=bada.boum
ONS_ENDPOINT=ovh-eu
ONS_AK=LhLpR**********
ONS_AS=yyYI2ZfCSC**********************
ONS_CK=A2rkibPKri**********************' > dns/ons.env
# bootstrap config
echo '[]' > dns/ons.config.json
# source .env
eval $(cat dns/ons.env | sed "s:^:export :")
## Add a DNS record
> ons add bim 1.2.3.4
Refreshing DNS zone state prior to plan...
+ dns record: 1.2.3.4 bim.bada.boum
Plan: 1 to add, 0 to remove.
> ons apply
Refreshing DNS state prior to apply...
1.2.3.4 bim.bada.boum added
Apply: 1 added, 0 removed.
> ons ls
1.2.3.4 * bim.bada.boum