resolv binary (partman-nbd) broken
Hi,
When installing / to NBD, partman-nbd needs to set up some boot-time parameters
so the NBD server can be found by the initrd.
Unfortunately, since the initrd does not have a working resolver
configured, that means we need to resolve DNS names to IP addresses in
the installer. For that reason, I wrote "resolv.c", a program that's
installed to /bin and ships with partman-nbd[1]. Its goal is to take a
hostname and translate it to a list of IP addresses, either IPv6 or
IPv4.
It seemed to work when I originally wrote it; but today, I noticed this:
wouter@carillon:~/debian/debian-installer/packages/partman-nbd$ ./resolv db.debian.org
pÐ@
82.195.75.106
The first is supposed to be an IPv6 address; instead, it is junk.
I'm not sure what exactly happens, nor what the bug in the code is. Any
help would be welcome.
Thanks,
[1] It might make sense to ship it with something more generic, but I
couldn't think of a good udeb to put it in.
--
This end should point toward the ground if you want to go to space.
If it starts pointing toward space you are having a bad problem and you
will not go to space today.
-- http://xkcd.com/1133/
Reply to: