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.


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 :


Setup your provider DNS:

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