[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[cobalt-users] Script to add secondary DNS? Xposted on Developers and Users.
- Subject: [cobalt-users] Script to add secondary DNS? Xposted on Developers and Users.
- From: "Joe Quinn" <joe@xxxxxxxxxx>
- Date: Sat Mar 31 08:31:57 2001
- List-id: Mailing list for users to share thoughts on Cobalt products. <cobalt-users.list.cobalt.com>
Hi,
I'm trying to make up a script to automate adding secondary DNS for one of
my customers. He provides me with a data file containing all the domains and
I want to run the following script but I don't know how to bring in the
variables from the data file.
#!/bin/sh
echo secondary - $1 www.xxx.yyy.zz - >> records
$1 is obviously the variable from the data file and the script is run in the
/etc/named directory. After the script is run, I can either run
/usr/admserv/cgi-bin/.cobalt/dns/index.cgi
or restart using the GUI. I've just got a mental block on this one! Can
anyone assist please?
Once I get this working I might make a cron job to grab a data file (if any)
off his server to automate doing secondaries. Any thoughts anyone?
Joe Quinn