Re: DHCP Hostname

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Sat, 2010-11-06 at 18:26 +0000, Lucas Maneos wrote:
> Maemo uses udhcpc instead, but it does send the hostname by default - here's
> what the DISCOVER request looks like with tshark -V:
> 
> Bootstrap Protocol
> [...]
>     Option: (t=53,l=1) DHCP Message Type = DHCP Discover
>         Option: (53) DHCP Message Type
>         Length: 1
>         Value: 01
>     Option: (t=61,l=7) Client identifier
>         Option: (61) Client identifier
>         Length: 7
>         Value: 01001D6EXXXXXX
>         Hardware type: Ethernet
>         Client MAC address: NokiaDan_XX:XX:XX (00:1d:6e:XX:XX:XX)
>     Option: (t=12,l=15) Host Name = "Nokia-N810-43-7"
>         Option: (12) Host Name
>         Length: 15
>         Value: 4E6F6B69612D4E3831302D34332D37
> [...]
> 
> This is done by /usr/lib/icd2/libicd_network_ipv4.so (passed as a -H
> argument to udhcpc) which you can't change, but if you want to send a
> different one you can always set the real hostname to that via
> /etc/hostname and reboot.
> 
> L.

Hey Lucas. Thanks a lot for your help. I edited /etc/hostname, but after
rebooting, if I run hostname, it just prints out a blank line. Ideas?

-- 
Kip Warner -- Software Engineer
OpenPGP encrypted/signed mail preferred
http://www.thevertigo.com

Attachment: signature.asc
Description: This is a digitally signed message part

_______________________________________________
maemo-users mailing list
maemo-users@xxxxxxxxx
https://lists.maemo.org/mailman/listinfo/maemo-users

[Index of Archives]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [XFree86]     [Big List of Linux Books]    

  Powered by Linux