From: Kelly Setzer <Kelly.Setzer@placemark.com>
To: Mark Seamans <marks@crvinc.com>
Cc: netfilter@lists.netfilter.org
Subject: Re: scripting issue
Date: Tue, 1 Apr 2003 16:41:30 -0600 [thread overview]
Message-ID: <20030401224130.GK19832@placemark.com> (raw)
In-Reply-To: <200304011543.54597.marks@crvinc.com>
On Tue, Apr 01, 2003 at 03:43:54PM -0600, Mark Seamans wrote:
> Although this doesn't have anything to do with iptables, I do
> believe that you will have the best answer. Simple script that will
> NAMEDCFG="/etc/bind/named.conf
> DOMAINNAME= script asks user this question....
> NS2=....server ip number.
> ${SSH} -l root ${NS2} echo -e "zone \"${DOMAINNAME}\" {" >> '${NAMEDCFG}''
> ${SSH} -l root ${NS2} echo -e " type slave;" >> ${NAMEDCFG}
> ${SSH} -l root ${NS2} echo -e " file \"sec/dbsec.${DOMAINNAME}\";" >> ${NAMEDCFG}
> ${SSH} -l root ${NS2} echo -e " masters { 10.10.10.10; };" >> ${NAMEDCFG}
> ${SSH} -l root ${NS2} echo -e "};" >> ${NAMEDCFG}
#!/bin/bash
# don't quibble about my choice of bash
NAMEDCFG="/etc/bind/named.conf
DOMAINNAME= script asks user this question....
NS2=....server ip number.
{
cat <<EOF
zone ${DOMAINNAME} {
type slave;
file "sec/dbsec.${DOMAINNAME}";
masters { 10.10.10.10; };
};
EOF
} | ${SSH} root@${NS2} "cat - >> $NAMEDCFG"
Kelly
--
Kelly Setzer, System Administrator/Architect - Placemark Investments
14180 Dallas Pkwy, Suite 200, Dallas, TX 75240
kelly.setzer@placemark.com http://www.placemark.com
(972)404-8100x41 (work) (214) 287-3464 (cell)
prev parent reply other threads:[~2003-04-01 22:41 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-04-01 21:43 scripting issue Mark Seamans
2003-04-01 22:41 ` Kelly Setzer [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20030401224130.GK19832@placemark.com \
--to=kelly.setzer@placemark.com \
--cc=marks@crvinc.com \
--cc=netfilter@lists.netfilter.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox