Commit bcde4688 authored by huber's avatar huber
Browse files

[tv/gen_dns.sh] "'" n'est pas un caractère autorisé dans les fqdn

darcs-hash:20090130174317-8fbb1-f78de9f7d765bdd34011e82837182851929ffa3a.gz
parent 3e49eb27
......@@ -26,7 +26,7 @@ $(date +%s) ; numero de serie
EOF
sed -r 's/(fra|eng|ger|ara|rom|rad|rus|ned|ita|vo|x-ero|autres|sport|TNT[0-9]{2})//g' $SAP_TXT | sed 's/[ _()]//g' | tr A-Z a-z | awk -F ':' '{print $1 "\tIN\tA\t" $NF}' >> $DB_TV
sed -r 's/(fra|eng|ger|ara|rom|rad|rus|ned|ita|vo|x-ero|autres|sport|TNT[0-9]{2})//g' $SAP_TXT | sed "s/[ _()']//g" | tr A-Z a-z | awk -F ':' '{print $1 "\tIN\tA\t" $NF}' >> $DB_TV
cat > $DB_239 <<EOF
\$ORIGIN 239.in-addr.arpa.
......@@ -48,7 +48,7 @@ $(date +%s) ; numero de serie
EOF
sed -r 's/(fra|eng|ger|ara|rom|rad|rus|ned|ita|vo|x-ero|autres|sport|TNT[0-9]{2})//g' \
$SAP_TXT | sed 's/[ _()]//g' | tr A-Z a-z \
$SAP_TXT | sed "s/[ _()']//g" | tr A-Z a-z \
| awk -F ':' '{split($NF,ip,"."); print ip[4]"."ip[3]"."ip[2] "\tIN\tPTR\t" $1 ".tv.crans.org."}' >> $DB_239
/etc/init.d/bind9 reload
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment