server script
Robert Ngo
robertngo at perridot.com
Tue Sep 27 00:37:33 UTC 2005
I know how to change the dns and httpd config file but i am looking for
a script will allow me to enter the ip, hostname, .. and it will make
changes to all the config files.
Rushan Sobar wrote:
> For DNS bind named you can have look on /var/named/ or
> /var/named/chroot and see the *.rev and *..hosts files and named.conf
>
> you can make small script to creat the .hosts file as follow :
> --------------------------------------------------------------
> blahblah. IN SOA ns.blahblah.com. email.blahblah.com. (
> 1109196493
> 10800
> 3600
> 604800
> 38400 )
> blahblah.com. IN NS ns1.blablah.com.
> blahblah.com. IN NS ns2.blahblah.com.
> blahblah.com . IN MX 10 blahblah.com.
> www.blahblhah.com. IN MX 15 blahblah.com.
> www IN A 192.168.0.1
> web IN A 192.168.0.1
> ---------------------------------------------------------------
> and add path to it in named.conf as
>
> zone "blahblah.com" {
> type master;
> file "/var/named/blahblah.com.hosts";
> };
> ---------------------------------------------------------------
>
> restart ur named and it take effect
>
> about http and web apache
>
> edit /etc/httpd/conf/httpd.conf
>
> add as follow at the end on the file
>
> NameVirtualHost 192.168.0.1
> <VirtualHost www.blahblah.com>
> DocumentRoot "/var/www/html"
> ServerName blahblah.com
> <Directory "/var/www/html">
> allow from all
> Options +Indexes
> </Directory>
> DirectoryIndex index.htm index.html home.html home.htm
> </VirtualHost>
>
> restart your httpd
> and your done.
>
> Regards
>
>
> ----- Original Message ----- From: "Robert Ngo" <robertngo at perridot.com>
> To: "Rushan Sobar" <Rushan at mec.com.jo>
> Sent: Monday, September 26, 2005 11:58 AM
> Subject: Re: server script
>
>
>> I need something that can also make changes to dns and httpd confing
>> file at the same time
>>
>> Rushan Sobar wrote:
>>
>>> You Can use scripts in /etc/sysconfig/network-scripts to manage you
>>> interface ip , gateway .... etc
>>>
>>> Regards
>>>
>>> ----- Original Message ----- From: "Robert Ngo"
>>> <robertngo at perridot.com>
>>> To: "Rushan Sobar" <Rushan at mec.com.jo>
>>> Sent: Monday, September 26, 2005 10:01 AM
>>> Subject: Re: server script
>>>
>>>
>>>> i cannot use webmin for these, i need a script that can do the
>>>> change without using the GUI.
>>>>
>>>>
>>>> Rushan Sobar wrote:
>>>>
>>>>> Hi,
>>>>>
>>>>> Try to use webmin
>>>>> www.webmin.com u can update redhat network interface and apache
>>>>> and dns and most of services through simple interface.
>>>>>
>>>>> Regards
>>>>> Rushan
>>>>>
>>>>> ----- Original Message ----- From: "Robert Ngo"
>>>>> <robertngo at perridot.com>
>>>>> To: <redhat-list at redhat.com>
>>>>> Sent: Monday, September 26, 2005 7:09 AM
>>>>> Subject: server script
>>>>>
>>>>>
>>>>>> Hi,
>>>>>>
>>>>>> Does anyone have some script that can be use to update a RedHat
>>>>>> server's IP, netmask, and gateway? I need something that can also
>>>>>> change the ip in dns and apache config files.
>>>>>>
>>>>>> Thanks & Regards
>>>>>>
>>>>>> Robert Ngo
>>>>>>
>>>>>> --
>>>>>> redhat-list mailing list
>>>>>> unsubscribe
>>>>>> mailto:redhat-list-request at redhat.com?subject=unsubscribe
>>>>>> https://www.redhat.com/mailman/listinfo/redhat-list
>>>>>>
>>>>>> --
>>>>>> This message has been scanned for viruses and
>>>>>> dangerous content by MEC E-Mail Scanner, and is
>>>>>> believed to be clean.
>>>>>> --
>>>>>> www.mec.com.jo
>>>>>>
>>>>>
>>>>>
>>>>>
>>>>
>>>>
>>>> --
>>>> This message has been scanned for viruses and
>>>> dangerous content by MEC E-Mail Scanner, and is
>>>> believed to be clean.
>>>> --
>>>> www.mec.com.jo
>>>>
>>>
>>>
>>>
>>
>>
>> --
>> This message has been scanned for viruses and
>> dangerous content by MEC E-Mail Scanner, and is
>> believed to be clean.
>> --
>> www.mec.com.jo
>>
>
>
>
More information about the redhat-list
mailing list