[pkg-dhcp-devel] Bug#793064: Bug#793064: syntax error in dhclient-script

Celejar celejar at gmail.com
Tue Jul 21 14:45:13 UTC 2015


On Tue, 21 Jul 2015 08:56:20 +0200
Axel Beckert <abe at debian.org> wrote:

...

> One of these lines from
> resolvconf-1.76.1/etc/dhcp/dhclient-enter-hooks.d/resolvconf look
> promising for this kind of issue:
> 
>   28 if [ "$new_domain_name_servers" ] && [ "$new_domain_name" ] ; then
>   32 if [ "$new_domain_name_servers" ] && [ "$new_domain_search" ] ; then
>   40 [ ! "$interface" ] || echo -n "$R" | /sbin/resolvconf -a "${interface}.dhclient"
> 
> One possibility I can imagine to cause such an issue would be if the
> DHCP server gives out strange values for either the domain name server
> list or the domains itself.

Here's the DHCP negotiation, captured with dhcpdump:

  TIME: 2015-07-21 10:36:02.880
    IP: 0.0.0.0 (xxxx) > 255.255.255.255 (ff:ff:ff:ff:ff:ff)
    OP: 1 (BOOTPREQUEST)
 HTYPE: 1 (Ethernet)
  HLEN: 6
  HOPS: 0
   XID: 1fa8c813
  SECS: 4
 FLAGS: 0
CIADDR: 0.0.0.0
YIADDR: 0.0.0.0
SIADDR: 0.0.0.0
GIADDR: 0.0.0.0
CHADDR: xxxx:00:00:00:00:00:00:00:00:00:00
 SNAME: .
 FNAME: .
OPTION:  53 (  1) DHCP message type         1 (DHCPDISCOVER)
OPTION:  50 (  4) Request IP address        192.168.1.3
OPTION:  12 (  6) Host name                 lizzie
OPTION:  55 (  7) Parameter Request List      1 (Subnet mask)
                                             28 (Broadcast address)
                                              2 (Time offset)
                                              3 (Routers)
                                             15 (Domainname)
                                              6 (DNS server)
                                             12 (Host name)

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

  TIME: 2015-07-21 10:36:04.168
    IP: 192.168.1.1 (xxxx) > 192.168.1.3 (xxxx)
    OP: 2 (BOOTPREPLY)
 HTYPE: 1 (Ethernet)
  HLEN: 6
  HOPS: 0
   XID: 1fa8c813
  SECS: 4
 FLAGS: 0
CIADDR: 0.0.0.0
YIADDR: 192.168.1.3
SIADDR: 192.168.1.1
GIADDR: 0.0.0.0
CHADDR: xxxx:00:00:00:00:00:00:00:00:00:00
 SNAME: .
 FNAME: .
OPTION:  53 (  1) DHCP message type         2 (DHCPOFFER)
OPTION:  54 (  4) Server identifier         192.168.1.1
OPTION:  51 (  4) IP address leasetime      86400 (24h)
OPTION:   1 (  4) Subnet mask               255.255.255.0
OPTION:  28 (  4) Broadcast address         192.168.1.255
OPTION:   2 (  4) Time offset               0 ()
OPTION:   3 (  4) Routers                   192.168.1.1
OPTION:  15 (  4) Domainname                home
OPTION:   6 (  4) DNS server                192.168.1.1
OPTION:  12 (  6) Host name                 lizzie
---------------------------------------------------------------------------

Anything out of the ordinary here?

Celejar



More information about the pkg-dhcp-devel mailing list