From b3a8eb89ead99257c7f6d58d124d3bef13604178 Mon Sep 17 00:00:00 2001 From: "Wyatt J. Miller" Date: Sat, 18 May 2024 16:12:17 -0400 Subject: [PATCH] fleshed out example files --- specialty-containers/bind/config/db.example.com | 17 +++++++++++++++++ .../bind/config/named.conf.local | 4 ++++ .../bind/config/named.conf.options | 11 +++++++++++ 3 files changed, 32 insertions(+) diff --git a/specialty-containers/bind/config/db.example.com b/specialty-containers/bind/config/db.example.com index e69de29..8d2f505 100644 --- a/specialty-containers/bind/config/db.example.com +++ b/specialty-containers/bind/config/db.example.com @@ -0,0 +1,17 @@ +; TODO: change this to your own soa, ns, a, aaaa, cname, etc. records +$TTL 1d ; default expiration time (in seconds) of all RRs without their own TTL value +@ IN SOA ns1.example.com. root.example.com. ( + 3 ; Serial + 1d ; Refresh + 1h ; Retry + 1w ; Expire + 1h ) ; Negative Cache TTL + +; name servers - NS records + IN NS ns1.example.com. + +; name servers - A records +ns1.example.com. IN A 172.24.0.2 + +service1.example.com. IN A 172.24.0.3 +service2.example.com. IN A 172.24.0.4 diff --git a/specialty-containers/bind/config/named.conf.local b/specialty-containers/bind/config/named.conf.local index e69de29..8c54d6d 100644 --- a/specialty-containers/bind/config/named.conf.local +++ b/specialty-containers/bind/config/named.conf.local @@ -0,0 +1,4 @@ +zone "example.com" { + type master; + file "/etc/bind/zones/db.example.com"; +}; diff --git a/specialty-containers/bind/config/named.conf.options b/specialty-containers/bind/config/named.conf.options index e69de29..9c5550a 100644 --- a/specialty-containers/bind/config/named.conf.options +++ b/specialty-containers/bind/config/named.conf.options @@ -0,0 +1,11 @@ +options { + directory "/var/cache/bind"; + + recursion yes; + listen-on { any; }; + + forwarders { + 8.8.8.8; + 4.4.4.4; + }; +};