An open API service indexing awesome lists of open source software.

https://github.com/cbodden/gcp_dyndns

A script that reads your current IP address as assigned by your ISP to enable automated updates to the A record in Google Cloud DNS for usage similar to DYNDNS
https://github.com/cbodden/gcp_dyndns

dns dyndns google-cloud google-cloud-dns

Last synced: 7 months ago
JSON representation

A script that reads your current IP address as assigned by your ISP to enable automated updates to the A record in Google Cloud DNS for usage similar to DYNDNS

Awesome Lists containing this project

README

          

![Unsupported](https://img.shields.io/badge/development_status-in_progress-green.svg)
[![License](https://img.shields.io/badge/License-BSD_3--Clause-blue.svg)](https://opensource.org/licenses/BSD-3-Clause)

gcp_dyndns.sh
====

A script that reads your current IP address as assigned by your isp to
enable automated updates to the A record in Google Cloud DNS for usage
similar to DYNDNS

Usage
----



Name
gcp_dyndns.sh

SYNOPSIS
gcp_dyndns.sh [OPTION]...

DESCRIPTION
A script that reads your current IP address as assigned by your isp to
enable automated updates to the A record in Google Cloud DNS for usage
similar to DYNDNS

OPTIONS
-d [FQDN]
The DNS name that matches the incoming queries with this zone's
DNS name as its suffix.
This can be found in the second column by running :

gcloud dns managed-zones list

-q
Do not output messages. Set this flag if you want to run this
script in cron. This will not stop error messages. By default
this is not enabled.

-t [TTL]
The TTL in seconds that the resolver caches this resource
record set.
This defaults to 300 (5 minutes).

-r [resource type]
The resource record type of this resource record set.
This defaults to A.

-z [zone name]
The managed zone that this resource record set is affiliated with.
For example, my-zone-name; the name of this resource record set
must have the DNS name of the managed zone as its suffix.
This can be found in the first column by running :

gcloud dns managed-zones list

Examples
Update the A record for FQDN FOOBAR.BAZ with zone name EX-SET :

./gcp-dyndns.sh -d foobar.baz -z EX-SET

Requirement
This script requires that the Google Cloud SDK tools are installed and
configured in your path and that the command gcloud is functioning
against your Google Cloud account with access to Google Coud DNS.

Requirements
----

- Google Cloud Command Line Interface (gcloud CLI) (https://cloud.google.com/sdk/docs/install)

License and Author
----

Copyright (c) 2022, cesar@poa.nyc
All rights reserved.

This source code is licensed under the BSD-style license
found in the LICENSE file in the root directory of this
source tree.