Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 11 Oct 2014 17:10:23 +0200
From:      Christian Alge <lists@burnus.net>
To:        FreeBSD-STABLE Mailing List <freebsd-stable@freebsd.org>
Subject:   Re: Server insists on wrong hostname
Message-ID:  <5439485F.4000002@burnus.net>
In-Reply-To: <54393DBD.4030602@sorbs.net>
References:  <5438F7A4.4070908@burnus.net> <54392A57.7020704@sorbs.net> <54393142.4050005@burnus.net> <5439326B.3070508@sorbs.net> <54393C76.7090702@burnus.net> <54393DBD.4030602@sorbs.net>

next in thread | previous in thread | raw e-mail | index | archive | help
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?)



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?5439485F.4000002>