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