<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Harutyun Dermenjyan</title>
    <description>The latest articles on DEV Community by Harutyun Dermenjyan (@harutyundermenjyan).</description>
    <link>https://dev.to/harutyundermenjyan</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F3846651%2F238e1e2c-665d-4eb9-90a9-025ede9a0d73.jpg</url>
      <title>DEV Community: Harutyun Dermenjyan</title>
      <link>https://dev.to/harutyundermenjyan</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/harutyundermenjyan"/>
    <language>en</language>
    <item>
      <title>Automating BIND9 DNS Management: From Manual Configs to Infrastructure as Code</title>
      <dc:creator>Harutyun Dermenjyan</dc:creator>
      <pubDate>Fri, 27 Mar 2026 19:22:17 +0000</pubDate>
      <link>https://dev.to/harutyundermenjyan/automating-bind9-dns-management-from-manual-configs-to-infrastructure-as-code-150j</link>
      <guid>https://dev.to/harutyundermenjyan/automating-bind9-dns-management-from-manual-configs-to-infrastructure-as-code-150j</guid>
      <description>&lt;p&gt;Managing BIND9 DNS zone files manually doesn't scale. Every change means SSH-ing into a server, editing config files, and hoping you don't break DNS resolution for your entire infrastructure.&lt;/p&gt;

&lt;p&gt;An open-source stack that turns BIND9 management into proper Infrastructure as Code. Here's what the stack looks like:&lt;/p&gt;

&lt;h2&gt;
  
  
  The Architecture
&lt;/h2&gt;

&lt;p&gt;The solution has three components that work together:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;&lt;a href="https://github.com/harutyundermenjyan/bind9-api" rel="noopener noreferrer"&gt;bind9-api&lt;/a&gt;&lt;/strong&gt; — A REST API that sits on top of BIND9, providing HTTP endpoints for zone management, record CRUD, ACL management, DNSSEC, and more.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;&lt;a href="https://github.com/harutyundermenjyan/terraform-provider-bind9" rel="noopener noreferrer"&gt;Terraform Provider for BIND9&lt;/a&gt;&lt;/strong&gt; — A Terraform/OpenTofu provider that talks to the API, letting you manage DNS zones and records as code with full plan/apply workflow.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;&lt;a href="https://github.com/harutyundermenjyan/ansible-bind9-api" rel="noopener noreferrer"&gt;Ansible Role&lt;/a&gt;&lt;/strong&gt; — Handles the one-time deployment of both BIND9 and the API on your servers.&lt;/p&gt;&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;The key design decision: &lt;strong&gt;Ansible manages infrastructure&lt;/strong&gt; (installing BIND9, deploying the API) while &lt;strong&gt;Terraform manages content&lt;/strong&gt; (zones, records, ACLs). Each tool does what it's best at.&lt;/p&gt;

&lt;h2&gt;
  
  
  What You Can Do
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;Manage 30+ DNS record types (A, AAAA, CNAME, MX, TXT, SRV, CAA, and more)&lt;/li&gt;
&lt;li&gt;Single-server or multi-primary architectures&lt;/li&gt;
&lt;li&gt;DNSSEC key management (KSK, ZSK, CSK)&lt;/li&gt;
&lt;li&gt;ACL management as code&lt;/li&gt;
&lt;li&gt;Bulk record generation using Terraform's &lt;code&gt;for_each&lt;/code&gt; and &lt;code&gt;range()&lt;/code&gt;
&lt;/li&gt;
&lt;li&gt;Prometheus metrics for monitoring&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Getting Started
&lt;/h2&gt;

&lt;p&gt;The full walkthrough with architecture diagrams, code examples, and step-by-step setup is in the blog post on Dev Genius:&lt;/p&gt;

&lt;p&gt;&lt;a href="https://medium.com/dev-genius/automating-bind9-dns-management-from-manual-configs-to-infrastructure-as-code-84292214b5a5" rel="noopener noreferrer"&gt;Read the full article on Medium&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;All three projects are open source under Apache 2.0. Contributions and feedback welcome!&lt;/p&gt;

</description>
      <category>devops</category>
      <category>terraform</category>
      <category>dns</category>
      <category>opensource</category>
    </item>
  </channel>
</rss>
