How to set dynamic DNS-Entries using Terraform

Terraform provides a huge number of providers. One of them is the DNS-Provider which can be used for BIND or NAMED DNS-Servers.

I will shortly describe how we achive a dynamic set of DNS.

terrafom.io

Bind

Create a Key Secret:

Add a new key to the following to your /etc/bind/named.conf :

Set the following in /etc/bind/named.conf.local :

Terraform

Setup your provider DNS:

variables.tf

providers.tf

Then run the terraform apply and you will find the following lines in your bind or named logfiles:

Working as a IT-Operations engineer at NeXenio, a spin-off by Hasso-Plattner-Institute for products around a digitial workspace.

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store