commentaires
This commit is contained in:
parent
a835790132
commit
d4c27ec7e6
@ -2,6 +2,7 @@
|
|||||||
set -u
|
set -u
|
||||||
set -e
|
set -e
|
||||||
|
|
||||||
|
## variables a ajuster
|
||||||
readonly zone="domaine.lan"
|
readonly zone="domaine.lan"
|
||||||
readonly zonerev="1.168.192.in-addr.arpa"
|
readonly zonerev="1.168.192.in-addr.arpa"
|
||||||
readonly nsname="ns"
|
readonly nsname="ns"
|
||||||
@ -17,7 +18,7 @@ readonly nsfqdnp="${nsfqdn}."
|
|||||||
readonly zonep="${zone}."
|
readonly zonep="${zone}."
|
||||||
readonly date=$(date +%Y%m%d00)
|
readonly date=$(date +%Y%m%d00)
|
||||||
|
|
||||||
|
echo "Fichier named.conf.local : declaration des zones"
|
||||||
cat <<EOT > "named.conf.local"
|
cat <<EOT > "named.conf.local"
|
||||||
|
|
||||||
; fichier zone ${zone}
|
; fichier zone ${zone}
|
||||||
@ -36,6 +37,7 @@ zone "${zonerev}" {
|
|||||||
EOT
|
EOT
|
||||||
|
|
||||||
|
|
||||||
|
echo "Fichier de zone directe : db.${zone}"
|
||||||
cat <<EOT > "db.${zone}"
|
cat <<EOT > "db.${zone}"
|
||||||
; fichier zone ${zone}
|
; fichier zone ${zone}
|
||||||
; le $(date)
|
; le $(date)
|
||||||
@ -64,6 +66,8 @@ ${nsname2} IN A ${nsip2}
|
|||||||
|
|
||||||
EOT
|
EOT
|
||||||
|
|
||||||
|
echo "Fichier de zone directe inverse : db.${zone}.rev"
|
||||||
|
|
||||||
cat <<EOT > "db.${zone}.rev"
|
cat <<EOT > "db.${zone}.rev"
|
||||||
; fichier zone inverse ${zone}
|
; fichier zone inverse ${zone}
|
||||||
; le $(date)
|
; le $(date)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user