adding a domain in the named file and create the zone file in /var/named
I'm not sure how sophisticated you are in
administrating this stuff *at all* (without Perl).
There is something out there that describes
how to handle complicated things in the zone files,
eg.
Format of DNS files.
Adding or modifying something depends IMHO entirely
on the conventions already used on your server (what only you may know).
adding virtual host to apache httpd.conf file
This is the same like above. Normally, you won't "add"
anything to "httpd.conf", but rather let include "httpd.conf"
sub
directories containing configuration files, like this
[httpd.conf] example piece:
...
Include /etc/apache2/vhosts-batch-01/*.conf
Include /etc/apache2/vhosts-batch-02/*.conf
...
In these directories, you may provide specialized
configuration files (xyz123.conf) for any http service you provide.
In each directory you may have some "common.inc" file
which gets included by each .conf in the respective directory
But that's the
Black Art of Apache Configuration and
this hasn't very much to do with Perl in the first place.
Once you are able to create a consistent multihost
configuration at all, there should be no problem to
write some Perl-Scripts that may manage them
Regards
mwa
Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
Read Where should I post X? if you're not absolutely sure you're posting in the right place.
Please read these before you post! —
Posts may use any of the Perl Monks Approved HTML tags:
- a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
| |
For: |
|
Use: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.