entry in /etc/hosts

Discussion of programming on Linux, including shell scripting, perl, python, c/c++, mono, java. Whatever tickles your fancy.

entry in /etc/hosts

Postby zafar466 » Mon Jun 09, 2008 9:58 pm

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
zafar466
Lance Naik
 
Posts: 48
Joined: Sat Sep 30, 2006 1:50 pm

Re: entry in /etc/hosts

Postby LinuxFreaK » Thu Jun 12, 2008 8:01 am

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
LinuxFreaK
Site Admin
 
Posts: 5132
Joined: Fri May 02, 2003 10:24 am
ICQ: 82075802
Website: http://www.linuxpakistan.net/wiki/index.php?pagename=LinuxFreak
WLM: f4fahmed@hotmail.com
Yahoo Messenger: f4fahmed@yahoo.com
AOL: linuxpakistan@aol.com
Location: Karachi

Postby AamirAkbar » Mon Mar 22, 2010 2:31 pm

Wow
Aamir(MS iiu islambad.)
Back Office Engineer
http://www.nsn.com/
(+ 92 345 200 1132)
AamirAkbar
Lance Naik
 
Posts: 33
Joined: Mon Sep 09, 2002 12:53 am
Website: http://www.nsn.com/
WLM: aamirakbar@hotmail.com
Yahoo Messenger: aamirakbarmughal@yahoo.com
Location: Islamabad


Return to “%s” Programming

Who is online

Users browsing this forum: No registered users and 2 guests

cron