https://github.com/jasonrig/gcloud-dyndns
Update GCP Cloud DNS using the host's publicly visible IP address
https://github.com/jasonrig/gcloud-dyndns
dns dynamic-dns dynamic-dns-updater google-cloud google-cloud-dns
Last synced: 2 months ago
JSON representation
Update GCP Cloud DNS using the host's publicly visible IP address
- Host: GitHub
- URL: https://github.com/jasonrig/gcloud-dyndns
- Owner: jasonrig
- License: mit
- Created: 2019-08-23T01:20:18.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2024-04-27T05:14:29.000Z (almost 2 years ago)
- Last Synced: 2024-08-10T09:30:05.300Z (over 1 year ago)
- Topics: dns, dynamic-dns, dynamic-dns-updater, google-cloud, google-cloud-dns
- Language: Python
- Size: 5.86 KB
- Stars: 11
- Watchers: 1
- Forks: 6
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Google Cloud Platform DNS updater
This package updates a DNS zone hosted on Google Cloud DNS to the IP addresses of the local
machine as visible from the internet using https://ifconfig.co/.
This script can be run in a cron job to periodically update DNS records of a GCP project on
connections without a static IP assigned. Supports IPv4 and IPv6.
## Installation
```shell script
pip install -U git+https://github.com/jasonrig/gcloud-dyndns.git
```
## Usage
```
$ update-gcloud-dns -h
usage: update-gcloud-dns [-h] [--ttl TTL] [--project_id PROJECT_ID]
[--force_update]
zone_name dns_name
positional arguments:
zone_name the name of the GCP zone to manage
dns_name the DNS name to update
optional arguments:
-h, --help show this help message and exit
--ttl TTL TTL of the update record
--project_id PROJECT_ID
name of the GCP project
--force_update force the DNS update even if the record hasn't changed
```
### Example:
```shell script
update-gcloud-dns --project_id some-gcp-project-195432 mydnszone test.mydnszone.com
```