Re: DHCP Hostname

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

 



On Fri, Nov 05, 2010 at 03:35:42PM -0700, Kip Warner wrote:
> On my desktop, I pop the following into my /etc/dhcp3/dhclient.conf
> 
> send host-name "<hostname>";
> 
> This allows me to locate my machine on the LAN by its hostname.
> 
> I've done the same on my N810, to no avail. Is the dhcp setup a little
> different?

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.
_______________________________________________
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