entry in /etc/hosts

Discussion of programming on Linux, including shell scripting, perl, python, c/c++, mono, java. Whatever tickles your fancy.
Post Reply
zafar466
Lance Naik
Posts: 48
Joined: Sat Sep 30, 2006 1:50 pm

entry in /etc/hosts

Post by zafar466 »

Hello,

i am searching the way to handle virutalmin/webmin such that whenever i create a virtual server an entry is made in the /etc/hosts file and when the server is deleted the entry in the /etc/hosts file is deleted

i have been trying to change some code in the create-domain.pl scripts that are executed when a virtual server is created .
but i have not been able to do that
please give some help in this regard

Thanks
LinuxFreaK
Site Admin
Posts: 5132
Joined: Fri May 02, 2003 10:24 am
Location: Karachi
Contact:

Re: entry in /etc/hosts

Post by LinuxFreaK »

Dear zafar466,
Salam,
zafar466 wrote:i am searching the way to handle virutalmin/webmin such that whenever i create a virtual server an entry is made in the /etc/hosts file and when the server is deleted the entry in the /etc/hosts file is deleted

i have been trying to change some code in the create-domain.pl scripts that are executed when a virtual server is created .
but i have not been able to do that
please give some help in this regard
What you want to achieve ?

Best Regards.
Farrukh Ahmed
AamirAkbar
Lance Naik
Posts: 33
Joined: Mon Sep 09, 2002 12:53 am
Location: Islamabad
Contact:

Post by AamirAkbar »

Wow
Aamir(MS iiu islambad.)
Back Office Engineer
http://www.nsn.com/
(+ 92 345 200 1132)
Post Reply