Compare commits
3 Commits
Author | SHA1 | Date | |
---|---|---|---|
43e8eb5911 | |||
b24ef44c4a | |||
e195c6b4c7 |
@ -54,6 +54,7 @@ zone "${zone}" {
|
||||
|
||||
zone "${zonerev}" {
|
||||
type master;
|
||||
file "/etc/bind/db.${zone}.rev"; # zone directe
|
||||
};
|
||||
EOT
|
||||
else
|
||||
|
@ -3,6 +3,7 @@ set -eu
|
||||
|
||||
mondomaine=domaine.lan
|
||||
apt-get install -y bind9 bind9-doc bind9-host
|
||||
curl -fsSL https://goss.rocks/install |sh
|
||||
wget -nc https://gitea.lyc-lecastel.fr/gadmin/vagrant/raw/branch/main/divers/bind/mkzone
|
||||
bash mkzone "${mondomaine}"
|
||||
cp db.${mondomaine}* /etc/bind
|
||||
@ -14,7 +15,6 @@ host srv1
|
||||
host srv2
|
||||
host -t soa "${mondomaine}"
|
||||
host -l "${mondomaine}"
|
||||
curl -fsSL https://goss.rocks/install |sh
|
||||
goss add command "host ${mondomaine}"
|
||||
goss add command "host -t soa ${mondomaine}"
|
||||
goss add command "host -t ns ${mondomaine}"
|
||||
|
@ -7,7 +7,7 @@ wget -nc https://gitea.lyc-lecastel.fr/gadmin/vagrant/raw/branch/main/divers/bin
|
||||
bash mkzone -s "${mondomaine}"
|
||||
cp named.conf.local /etc/bind
|
||||
sudo named-checkconf /etc/bind/named.conf
|
||||
sudo named-checkzone "${mondomaine}" "/etc/bind/db.${mondomaine}"
|
||||
sudo named-checkzone "${mondomaine}" "/var/cache/bind/db.${mondomaine}"
|
||||
sudo systemctl restart bind9
|
||||
host srv1
|
||||
host srv2
|
||||
|
Reference in New Issue
Block a user