From 8c03e49457c0e76993db2ae142c5550af5e6dfdc Mon Sep 17 00:00:00 2001 From: Julien Moutinho Date: Sun, 14 Apr 2013 19:51:22 +0200 Subject: [PATCH] Ajout : etc/nsd3/zone.d/ : NS secondaire : ns6.gandi.net . --- etc/nsd3/zone.d/heureux-cyclage.org.conf | 5 +++-- etc/nsd3/zone.d/heureux-cyclage.org.zone.m4 | 1 + etc/nsd3/zone.d/wiklou.org.conf | 5 +++-- etc/nsd3/zone.d/wiklou.org.zone.m4 | 1 + etc/sv/nsd3/configure.sh | 5 ++--- 5 files changed, 10 insertions(+), 7 deletions(-) diff --git a/etc/nsd3/zone.d/heureux-cyclage.org.conf b/etc/nsd3/zone.d/heureux-cyclage.org.conf index a785e19..b889f91 100644 --- a/etc/nsd3/zone.d/heureux-cyclage.org.conf +++ b/etc/nsd3/zone.d/heureux-cyclage.org.conf @@ -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 diff --git a/etc/nsd3/zone.d/heureux-cyclage.org.zone.m4 b/etc/nsd3/zone.d/heureux-cyclage.org.zone.m4 index 944b2f8..e29e679 100644 --- a/etc/nsd3/zone.d/heureux-cyclage.org.zone.m4 +++ b/etc/nsd3/zone.d/heureux-cyclage.org.zone.m4 @@ -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, diff --git a/etc/nsd3/zone.d/wiklou.org.conf b/etc/nsd3/zone.d/wiklou.org.conf index a785e19..b889f91 100644 --- a/etc/nsd3/zone.d/wiklou.org.conf +++ b/etc/nsd3/zone.d/wiklou.org.conf @@ -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 diff --git a/etc/nsd3/zone.d/wiklou.org.zone.m4 b/etc/nsd3/zone.d/wiklou.org.zone.m4 index 78c46e4..6f5ed21 100644 --- a/etc/nsd3/zone.d/wiklou.org.zone.m4 +++ b/etc/nsd3/zone.d/wiklou.org.zone.m4 @@ -44,3 +44,4 @@ www A IP4(LAUTRENET) ; ENREGISTREMENTS « NS » (Name Server) @ NS ns +@ NS ns6.gandi.net. diff --git a/etc/sv/nsd3/configure.sh b/etc/sv/nsd3/configure.sh index 0e870e3..2d8ac85 100644 --- a/etc/sv/nsd3/configure.sh +++ b/etc/sv/nsd3/configure.sh @@ -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 } | -- 2.20.1