Go to file
2022-08-21 08:53:57 -05:00
.env-sample Support multiple domains 2022-08-20 14:09:55 -04:00
.gitignore Created a script to keep Azure DNS pointed to the public IP 2022-07-13 20:39:22 -04:00
azure-dns-update.service Add systemd service file 2022-08-21 08:42:04 -04:00
README.md Support multiple domains 2022-08-20 14:09:55 -04:00
update-dns.sh Making log output friendlier 2022-08-21 08:53:57 -05:00

Azure DNS Update

A utility that can be used to keep your Azure DNS pointed to your on-premises/home public IP address.


Features

  • Supports updating multiple DNS Zones at once
  • Can be run on a schedule
  • Can be run as a Docker container

Prerequisites

The following steps should be completed before this tool will become functional:

  • Create a new Azure DNS Zone on https://portal.azure.com
  • Purchase a domain and configure it's nameservers to point to Azure DNS
  • Create an A record with value @
  • Configure the Settings as described below in the .env file

Settings

These settings must be configured in a .env file in the same directory as the script.

SUBSCRIPTION_ID=<YOUR_SUBSCRIPTION_ID_GUID>
CLIENT_ID=<YOUR_CLIENT_ID_GUID>
CLIENT_SECRET=<YOUR_CLIENT_SECRET>
TENANT_ID=<YOUR_TENANT_ID_GUID>

RESOURCE_GROUP_NAMES="<YOUR_RESOURCE_GROUP_NAMES_SPACE_DELIMITED>"
ZONE_NAMES="<YOUR_DNS_ZONE_NAMES_SPACE_DELIMITED>"
RECORD_TYPE=A
RELATIVE_RECORD_SET_NAME=@

Usage

To run, simply configure the .env file and run the update-dns.sh script.