blob: 88059262b409cbe26bbd48007ac383a1d0d9090a (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
#!/bin/sh
if ! ./scripts/check_db_safety; then
exit 1
fi
mkdir -p export/dn42/data/dns || exit 1
for d in db/dom/dn42/* ; do
domain="`basename $d`.dn42"
owner="`cat $d/owner | tr a-z A-Z`-DN42"
(
echo -e "domain:\t\t$domain"
for ns in $d/ns/* ; do
nsname="`basename $ns`"
nsip="`cat $ns`"
echo -e "nserver:\t$nsname $nsip"
done
echo -e "status:\t\tconnect"
echo -e "admin-c:\t$owner"
echo -e "tech-c:\t\t$owner"
) > "export/dn42/data/dns/$domain"
done
|