Server insists on wrong hostname

Christian Alge lists at burnus.net
Sat Oct 11 15:10:46 UTC 2014


I do not know, how to put it in debug mode. The manpages of dhclient and
dhclient.conf are not very helpful..
Instead I reinvoked dhclient for the interface with dhcpdump running.
The output looks right to me (see below, slightly obfuscated).. Notice
that both the request and the reply contain the correct hostname (in
option 12). However, the hostname does not seem to be set in the end
(hostname still reports the old name).
And yes, I did restart the DHCP server after changing the config.

  TIME: 2014-10-11 16:58:09.563
    IP: 192.168.1.5 (00:22:xx:xx:xx:xx) > 255.255.255.255
(ff:ff:ff:ff:ff:ff)
    OP: 1 (BOOTPREQUEST)
 HTYPE: 1 (Ethernet)
  HLEN: 6
  HOPS: 0
   XID: xxxxxxxx
  SECS: 0
 FLAGS: 0
CIADDR: 0.0.0.0
YIADDR: 0.0.0.0
SIADDR: 0.0.0.0
GIADDR: 0.0.0.0
CHADDR: 00:22:xx:xx:xx:xx:00:00:00:00:00:00:00:00:00:00
 SNAME: .
 FNAME: .
OPTION:  53 (  1) DHCP message type         3 (DHCPREQUEST)
OPTION:  50 (  4) Request IP address        192.168.1.5
OPTION:  61 (  7) Client-identifier         01:00:22:xx:xx:xx:xx
OPTION:  12 ( 12) Host name                 freieenergie
OPTION:  55 (  9) Parameter Request List      1 (Subnet mask)
                         28 (Broadcast address)
                          2 (Time offset)
                        121 (Classless Static Route)
                          3 (Routers)
                         15 (Domainname)
                          6 (DNS server)
                         12 (Host name)
                        119 (Domain Search)

---------------------------------------------------------------------------

  TIME: 2014-10-11 16:58:09.564
    IP: 192.168.1.1 (a0:f3:xx:xx:xx:xx) > 192.168.1.5 (00:22:xx:xx:xx:xx)
    OP: 2 (BOOTPREPLY)
 HTYPE: 1 (Ethernet)
  HLEN: 6
  HOPS: 0
   XID: a4xxxxxx
  SECS: 0
 FLAGS: 0
CIADDR: 0.0.0.0
YIADDR: 192.168.1.5
SIADDR: 192.168.1.1
GIADDR: 0.0.0.0
CHADDR: 00:22:xx:xx:xx:xx:00:00:00:00:00:00:00:00:00:00
 SNAME: .
 FNAME: .
OPTION:  53 (  1) DHCP message type         5 (DHCPACK)
OPTION:  54 (  4) Server identifier         192.168.1.1
OPTION:  51 (  4) IP address leasetime      43200 (12h)
OPTION:  58 (  4) T1                        21600 (6h)
OPTION:  59 (  4) T2                        37800 (10h30m)
OPTION:   1 (  4) Subnet mask               255.255.255.0
OPTION:  28 (  4) Broadcast address         192.168.1.255
OPTION:   3 (  4) Routers                   192.168.1.1
OPTION:   6 (  4) DNS server                192.168.1.1
OPTION:  15 (  3) Domainname                lan
OPTION:  12 ( 12) Host name                 freieenergie
---------------------------------------------------------------------------

Michelle Sullivan schrieb:
> Put the DHCP client in debug mode - it's most likely coming from the
> DHCP server (did you restart it after changing the config?)


More information about the freebsd-stable mailing list