Compare commits
No commits in common. "43e8eb5911f9af60dd854c6820fa6ab744e6d63d" and "e195c6b4c732e21fb9249ad1b5338d4c2c7301cd" have entirely different histories.
43e8eb5911
...
e195c6b4c7
@ -3,7 +3,6 @@ set -eu
|
|||||||
|
|
||||||
mondomaine=domaine.lan
|
mondomaine=domaine.lan
|
||||||
apt-get install -y bind9 bind9-doc bind9-host
|
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
|
wget -nc https://gitea.lyc-lecastel.fr/gadmin/vagrant/raw/branch/main/divers/bind/mkzone
|
||||||
bash mkzone "${mondomaine}"
|
bash mkzone "${mondomaine}"
|
||||||
cp db.${mondomaine}* /etc/bind
|
cp db.${mondomaine}* /etc/bind
|
||||||
@ -15,6 +14,7 @@ host srv1
|
|||||||
host srv2
|
host srv2
|
||||||
host -t soa "${mondomaine}"
|
host -t soa "${mondomaine}"
|
||||||
host -l "${mondomaine}"
|
host -l "${mondomaine}"
|
||||||
|
curl -fsSL https://goss.rocks/install |sh
|
||||||
goss add command "host ${mondomaine}"
|
goss add command "host ${mondomaine}"
|
||||||
goss add command "host -t soa ${mondomaine}"
|
goss add command "host -t soa ${mondomaine}"
|
||||||
goss add command "host -t ns ${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}"
|
bash mkzone -s "${mondomaine}"
|
||||||
cp named.conf.local /etc/bind
|
cp named.conf.local /etc/bind
|
||||||
sudo named-checkconf /etc/bind/named.conf
|
sudo named-checkconf /etc/bind/named.conf
|
||||||
sudo named-checkzone "${mondomaine}" "/var/cache/bind/db.${mondomaine}"
|
sudo named-checkzone "${mondomaine}" "/etc/bind/db.${mondomaine}"
|
||||||
sudo systemctl restart bind9
|
sudo systemctl restart bind9
|
||||||
host srv1
|
host srv1
|
||||||
host srv2
|
host srv2
|
||||||
|
Loading…
x
Reference in New Issue
Block a user