Code Snippets DNS Zone

Short texts DNS Zone 🧑‍💻 Code snippets DNS Zone ✍️ Reading lists DNS Zone 👀

bind9 zone for the Power Mail-in-a-Box Development servers. Each host (buster, focal, bullseye) represents a supported platform (buster = Debian 10, bullseye = Debian 11, focal = Ubuntu 20.04)

; $TTL 3600 @ IN SOA mailinabox.lan. root.mailinabox.lan. ( 20210814 ; Serial 600 ; Refresh 300 ; Retry 2419200 ; Expire 300 ); ; Negative Cache TTL @ IN NS . @ IN A 127.0.0.1 buster IN NS ns1.buster.mailinabox.lan. buster IN NS ns2.buster.mailinabox.lan. ns1.buster IN A 192.168.168.2 ns2.buster IN A 192.168.168.2 focal IN NS ns1.focal.mailinabox.lan. […]

zone file example with $INCLUDE

api.cluster.example.com. 7200 A 192.168.1.104 lb.cluster.example.com. 7200 A 192.168.1.105 ns1.cluster.example.com. 7200 A 192.168.1.106 apps.cluster.example.com. 7200 A 192.168.1.105 apps.cluster.example.com. 7200 NS ns1.cluster.example.com. $ORIGIN example.com. $TTL 900 @ SOA ns1.example.com. hostmaster.example.com. 2021042901 86400 7200 3600000 3600 @ NS ns1.example.com. ns1 A 192.168.1.10 $INCLUDE clusters/example-cluster.inc