Hi Jochen

Nice patch. I'll add that one.

Best regards,

// Ola

On Mon, Oct 01, 2007 at 05:40:39PM +0100, Jochen Voss wrote:
> Package: vserver-debiantools
> Version: 0.3.6.2
> Severity: wishlist
> File: /usr/sbin/newvserver
> Tags: patch
> 
> Hi,
> 
> if you are creating many VServers using the newvserver script, it is a
> bit cumbersome to always give the correct combination of --hostname
> and --ip.  An alternative strategy would be to set up a name server
> which knows about the IP<->hostname assignments and to derive either
> the hostname or the IP address by querying the name server.  This is
> implemented by the appended patch.
> 
> Using the patch you can just use
> 
>     newvserver --ip 1.2.3.4/24
> 
> and the script looks up hostname and domain (if not given) using the
> name server.  Alternatively you can use
> 
>     newvserver --hostname x --domain y.z
> 
> and the script looks up the IP address using the name server.  In this
> case the prefix length (/24 in the above example) is taken from the
> netmask of the given network interface.
> 
> I hope this helps,
> Jochen
> 
> -- System Information:
> Debian Release: lenny/sid
>   APT prefers unstable
>   APT policy: (500, 'unstable')
> Architecture: amd64 (x86_64)
> 
> Kernel: Linux 2.6.22-2-vserver-amd64 (SMP w/1 CPU core)
> Locale: LANG=C, LC_CTYPE=C (charmap=ANSI_X3.4-1968)
> Shell: /bin/sh linked to /bin/bash
> 
> Versions of packages vserver-debiantools depends on:
> ii  binutils                    2.18-1       The GNU assembler, linker and 
> bina
> ii  debootstrap                 1.0.3        Bootstrap a basic Debian system
> ii  dnsutils                    1:9.4.1-P1-1 Clients provided with BIND
> ii  iproute                     20070313-1   Professional tools to control 
> the 
> ii  rsync                       2.6.9-5      fast remote file copy program 
> (lik
> ii  util-vserver                0.30.214-3   user-space tools for 
> Linux-VServer
> 
> vserver-debiantools recommends no packages.
> 
> -- no debconf information
> 
> -- 
> http://seehuhn.de/





-- 
 --------------------- Ola Lundqvist ---------------------------
/  [EMAIL PROTECTED]                     Annebergsslingan 37      \
|  [EMAIL PROTECTED]                     654 65 KARLSTAD          |
|  http://opalsys.net/                 +46 (0)70-332 1551       |
\  gpg/f.p.: 7090 A92B 18FE 7994 0C36  4FE4 18A1 B1CF 0FE5 3DD9 /
 ---------------------------------------------------------------



-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to