Site Tools


Sidebar

snippets:linux_quickshotsetups:bind_rhel7

What?

Simple bind setup, hosting a zone, on RHEL7.

yum -y install bind bind-utils
echo 'include "/etc/named/named.conf.local";' >>/etc/named.conf

cat >>/etc/named/named.conf.local<<EOT
zone "local" {
       type master;
       file "/etc/named/db.local";
       notify yes;
       allow-transfer {
       		127.0.0.1;
       };
};
EOT

cat /etc/named/db.local
$TTL 604800             ; 1 week
@               IN SOA  local. chris.amd79b.local. (
                                2024020102      ; serial
                                10800           ; refresh (3 hours)
                                3600            ; retry (1 hour)
                                1209600         ; expire (2 weeks)
                                600             ; minimum (10 minutes)
                                )
                NS      amd79b.local.
                MX      10 amd79b.local.
                A       192.168.4.19
ns1             A       192.168.4.19
www             CNAME   ns1
amd79		A	192.168.4.18
amd79		MX	10 amd79
amd79b		A	192.168.4.19

systemctl enable --now named
snippets/linux_quickshotsetups/bind_rhel7.txt ยท Last modified: 2024/02/27 05:25 by chris