On Fri, Mar 19, 2010 at 9:13 PM, Denys Vlasenko
<[email protected]> wrote:
> On Fri, Mar 19, 2010 at 5:26 PM, Didier Kryn <[email protected]> wrote:
>> fact is that even with the correct resolv.conf (the same
>> as outside the chroot) it does not work.
>> Of course the next step will be to
>> obtain the resolv.conf from the dhcp answer.
>
> strace, and/or tcpdump log will show what's going on.
>
>> Maybe there is a new feature but this is the fist time
>> I read that DHCP server provide address names.
>> And it does not seem that udhcpc gets it.
>
> It's DHCP option 0x0c, "hostname". dhcpcd does not support
> emitting it (it just sends back the same hostname
> which client sent in DHCP discover, if any),
> but other DHCP servers can be configured to send back
> hostnames using this DHCP option.

Forgot to add:

and if DHCP server will do that,
udhcpc will (or "should" - I did not test it,
I looked through options.c and the code is there)
set $hostname variable when it runs the helper script.

-- 
vda
_______________________________________________
busybox mailing list
[email protected]
http://lists.busybox.net/mailman/listinfo/busybox

Reply via email to