Re: converting a hostname to an IP address

2011-08-15 Thread Michael Tokarev
13.08.2011 15:31, Otavio Salvador wrote: On Mon, Aug 8, 2011 at 08:50, Wouter Verhelst wou...@debian.org wrote: As such, I'd need to a name lookup of the servername the user provided me with, preferably in a shell command, so that when root-on-NBD is used, I can provide the user with a working

Re: converting a hostname to an IP address

2011-08-13 Thread Otavio Salvador
On Mon, Aug 8, 2011 at 08:50, Wouter Verhelst wou...@debian.org wrote: As such, I'd need to a name lookup of the servername the user provided me with, preferably in a shell command, so that when root-on-NBD is used, I can provide the user with a working command line (i.e., an nbdroot=

Re: converting a hostname to an IP address

2011-08-13 Thread Petter Reinholdtsen
[Otavio Salvador] I am not aware of any easy way for doing that but I'd suggest you to take a look in BusyBox to see what it can offer you to solve this. Do busybox provde getent? 'getent hosts $hostname' might work. Happy hacking, -- Petter Reinholdtsen -- To UNSUBSCRIBE, email to

converting a hostname to an IP address

2011-08-08 Thread Wouter Verhelst
Hi, Yesterday, I committed a change to nobootloader so it also shows the output of user-params in the kernel command line, and changed partman-nbd so it will output a correct nbdroot= parameter. With that, users should be shown a working kernel command line provided they entered the server by IP