File: dns_transfer.sh

package info (click to toggle)
dtc 0.35.5-1
  • links: PTS, VCS
  • area: main
  • in suites: experimental
  • size: 18,824 kB
  • sloc: php: 50,739; sh: 8,596; makefile: 572; perl: 148; xml: 25
file content (22 lines) | stat: -rw-r--r-- 583 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#!/bin/sh

# This peace of script helps you to transfer a list of domains
# that is on a DTC panel, to have a backup DNS not running DTC act as backup NS
# for a DTC panel enabled server

# Edit this to the site running you want to get the list of domains:

SITE_URL=dtc.your-site.com
LOGIN="xxx"
PASS="yyy"
BACKUP_FILE="/var/slave_dns.conf"

# Don't edit those, should be allright as default:
WGET_TOOL=links

URL="http://${SITE_URL}/dtc/list_domains.php?action=list_dns&server_login=${LOGIN}&server_pass=${PASS}"

${WGET_TOOL} -source "${URL}" >${BACKUP_FILE}

killall -HUP named