Automate local DNS with Bind and Terraform

preview_player
Показать описание
Doing manual configuration is a thing of the past! With Terraform, I’m now managing all my local DNS entries fully automatically. In this YouTube video, I’m going to show you exactly how I’ve done that. If you’re new to this, I recommend checking out my other video first. All the commands and configs are available on GitHub.

*Related Videos/Links*

________________

*💜 Support me and become a Fan!*

*💬 Join our Community!*

________________

*Read my Tech Documentation*

*My Gear and Equipment-**

________________

Timestamps:

00:00 - Introduction
01:23 - Advertisement-*
02:09 - Prepare the DNS Server
06:03 - Manage DNS Records with Terraform
09:49 - Add new DNS Records
15:41 - Apply changes to the static config

________________
All links with "*" are affiliate links.

#Homelab #DNS #Terraform
Рекомендации по теме
Комментарии
Автор

I'm loving your content! It's right on time for me as a rebuild my labs! I would love to see you cover Hashicorp Vault for keeping Terraform/Ansible secrets!

brianoconnell-dfkz
Автор

I am happy to watch all your videos. And I'm learning. go go go!

vvagw
Автор

That's a really cool way of handling DNS records. I didn't know terraform could handle the bind config on its own.
I use my OPNsense for DNS and create the records with a combination of terraform and ansible. I wrote a small playbook that creates an A record and several CNAME records which gets executed in my VM terraform module. That way I have the benefit of the lifecycle management from terraform plus the easy DNS setup without a dedicated VM for it. Combined with CI/CD it's just the perfect setup for a constantly changing homelab.

Low_Frequency_
Автор

This is really interesting! One thing I would like to see more of is that you do dual stack configuration. A lot of us use IPv6 to talk directly to our machines without the hastle of NAT!

no-mlgz
Автор

Nice approach to manage the dns records together with your IAC via Terraform.
I'm currently using terraform to manage virtual machines and an Ansible role to install and configure bind and it's zone files. As long as my Ansible inventory hosts are maintained correctly, my dns records will be as well ;)
Greetings from Germany btw.

olegfranko
Автор

Amazing video! Very nice content, well explained and very professional. Keep it up!

justarandomguy
Автор

Awesome! I am try that right away. Thanks for sharing

wahabhabeeb
Автор

If you're big on Terraform, I think that's a great solution. I opted for Technitium DNS and wrote a small Docker app for updating through the built-in API.

Nosiu
Автор

Nice tutorial, I'll totally set this up once I have my homelab setup ready. Btw have you ever used terraform cloud? It's pretty good ngl, have you seen it's latest update that it gives you one free runner to use for on premises terraform applies through terraform cloud?

cybr
Автор

Seriously Christan? I was looking up this topic and you posted this 3 hours ago!

DavidEsotica
Автор

Awesome video, I have refactored my Terraform scripts to include now the DNS A records of my hosts in my homelab. One question though: how do you generate the records for PTR records?

zend
Автор

Great video, interesting! Is there a web interface to insert new records into zones that interfaces with terraform+bind?

francescolaporta
Автор

where is video for using letsencrypt for the apps running on the internal networks?

youtubegarbageu
Автор

What I have done is use pfsense to automate DNS. I even got k3s to automatically update my dns entries

hansaya
Автор

I'm having a problem with "apparmor", when making the modification with terraform, bind returns an error when creating the file, I verified that the ubuntu image does not allow the application to write to this directory.

AndrewMay-GG
Автор

I am able to add A records, but these records are not updated in my zone files. They are in a zone file with a jnl extention. How do I get thezone fles updated?

michaelventarola
Автор

Is there any GUI for bind9 ? something like GoDaddy DNS manager / cpanel DNS manager ? If you plan to start that project, I would love to see it

ahmadmiqdaadabdulaziz
Автор

I just use FreeIPA for DNS Management. Once I add the server/ client to the Domain it automatically gets added as a DNS Entry

monsterhuntfreak
Автор

Hello, how do you solve the problem of creating the journal?

HackerConsole
Автор

"What I really hate in the IT is manual configuration.

So I took all the records from a huge Bind config file and put them all to another even bigger Terraform config file.

And I made a video about it."

pnxtjwi