Ajout : etc/nsd3/zone.d/ : NS secondaire : ns6.gandi.net .
authorJulien Moutinho <julm+burette@autogeree.net>
Sun, 14 Apr 2013 17:51:22 +0000 (19:51 +0200)
committerJulien Moutinho <julm+burette@autogeree.net>
Sun, 14 Apr 2013 18:25:01 +0000 (20:25 +0200)
etc/nsd3/zone.d/heureux-cyclage.org.conf
etc/nsd3/zone.d/heureux-cyclage.org.zone.m4
etc/nsd3/zone.d/wiklou.org.conf
etc/nsd3/zone.d/wiklou.org.zone.m4
etc/sv/nsd3/configure.sh

index a785e19..b889f91 100644 (file)
@@ -1,2 +1,3 @@
-
-# vim: ft=sh
+# NOTE: NS secondaire : ns6.gandi.net
+notify:      217.70.177.40 NOKEY
+provide-xfr: 217.70.177.40 NOKEY
index 944b2f8..e29e679 100644 (file)
@@ -72,6 +72,7 @@ ra    CNAME remorque
 
 ; ENREGISTREMENTS « NS » (Name Server)
 @ NS ns
+@ NS ns6.gandi.net.
 
 ; ENREGISTREMENTS "PTR" (IPv* -> name)
 ; NOTE : Dans le cas d’hébergement massif de domaines virtuels derrière une même adresse IP,
index a785e19..b889f91 100644 (file)
@@ -1,2 +1,3 @@
-
-# vim: ft=sh
+# NOTE: NS secondaire : ns6.gandi.net
+notify:      217.70.177.40 NOKEY
+provide-xfr: 217.70.177.40 NOKEY
index 78c46e4..6f5ed21 100644 (file)
@@ -44,3 +44,4 @@ www A IP4(LAUTRENET)
 
 ; ENREGISTREMENTS « NS » (Name Server)
 @ NS ns
+@ NS ns6.gandi.net.
index 0e870e3..2d8ac85 100644 (file)
@@ -1,5 +1,6 @@
 rule apt_get_install nsd
 rule insserv_remove  nsd3
+
 sudo rm -rf \
  /etc/nsd3/zone.d
 sudo install -d -m 750 -o root -g nsd \
@@ -25,13 +26,11 @@ sudo install -d -m 750 -o root -g nsd \
                 fi |
                sudo install -m 440 -o root -g nsd /dev/stdin \
                 /etc/nsd3/zone.d/"$domain".zone
-               sudo install -m 440 -o root -g nsd \
-                "$tool"/etc/nsd3/zone.d/"$conf" \
-                       /etc/nsd3/zone.d/"$conf"
                cat <<-EOF
                        zone:
                                name: $domain
                                zonefile: /etc/nsd3/zone.d/$domain.zone
+                               $(cat "$tool"/etc/nsd3/zone.d/"$conf")
                        EOF
         done
 } |