1.1 KiB
1.1 KiB
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.