[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [cobalt-users] RE: How can I easely set zonefiles IP's to other IP's



"bob lenaerts" <bob@xxxxxxxxxx> wrote:
<snip>
> Is there a script that can easely modify the zonefiles to othe IP
> adresses and increase the zonefile n# by 1 ?
> Or is it makeable ?
> And
> A script that sets the IP addresses into the httpd.conf file from
> 62.58.18.131 to 195.*.*.* ?
</snip>

I suggest using a global search and replace program.  I like rpl.  It can do
replacements in multiple files simultaneously and has a simulation mode so
you can see what files will be affected before actually committing the
changes.  Grab it at http://www.laffeycomputer.com/rpl.html.  The source
installation is very easy.  I imagine the 386 RPM will work too, but I've
never tried it (again, the source installation is easy).  For the DNS you
only need to edit the /etc/named/records file, then run
/usr/admserv/cgi-bin/.cobalt/dns/index.cgi, which will regenerate the pri*
files and /etc/named.conf.  With Apache, just do the same with httpd.conf
and then restart Apache.  Of course, you should always backup these files
before editing them just in case and if you're doing IP-based hosting
instead of name-based you'll probably want to write a script to do some kind
of loop otherwise it will still take you a while to do all of the
replacements.

--
Steve Werby
President, Befriend Internet Services LLC
http://www.befriend.com/