Bug#947688: systemd-networkd: Python socket.getfqdn() not working properly when resolv.conf lacks "domain" key

Dirk Heinrichs dirk.heinrichs at altum.de
Sun Dec 29 15:00:32 GMT 2019


Michael Biebl:

>> How would I create that (the former)?
> https://www.cyberciti.biz/faq/linux-unix-dhcpdump-monitor-dhcp-traffic/

Ah, OK. That's nice and clean. I guess it needs to be done on the 
client, right? So here we go (attached).

> It probably makes sense to involve upstream at this point and file a
> corresponding bug report at
> https://github.com/systemd/systemd/issues

Wanted to do that first, but it stated: "Bother your distribution if 
your systemd version is more than 2 behind latest upstream.", so I went 
here.

Bye...

	Dirk
-- 
Dirk Heinrichs <dirk.heinrichs at altum.de>
GPG Public Key: D01B367761B0F7CE6E6D81AAD5A2E54246986015
Sichere Internetkommunikation: http://www.retroshare.org
Privacy Handbuch: https://www.privacy-handbuch.de
-------------- next part --------------
# dhcpdump -i host0 
  TIME: 2019-12-29 15:27:29.476
    IP: 0.0.0.0 (8e:5c:b0:99:be:da) > 255.255.255.255 (ff:ff:ff:ff:ff:ff)
    OP: 1 (BOOTPREQUEST)
 HTYPE: 1 (Ethernet)
  HLEN: 6
  HOPS: 0
   XID: d7fa1228
  SECS: 1
 FLAGS: 0
CIADDR: 0.0.0.0
YIADDR: 0.0.0.0
SIADDR: 0.0.0.0
GIADDR: 0.0.0.0
CHADDR: 8e:5c:b0:99:be:da:00:00:00:00:00:00:00:00:00:00
 SNAME: .
 FNAME: .
OPTION:  53 (  1) DHCP message type         1 (DHCPDISCOVER)
OPTION:  61 ( 19) Client-identifier         ff:0b:89:5b:12:00:02:00:00:ab:11:0a:f3:70:6c:f2:6d:80:1c
OPTION:  55 (  9) Parameter Request List      1 (Subnet mask)
                                              3 (Routers)
                                             12 (Host name)
                                             15 (Domainname)
                                              6 (DNS server)
                                             26 (Interface MTU)
                                             33 (Static route)
                                            121 (Classless Static Route)
                                             42 (NTP servers)
                                            
OPTION:  57 (  2) Maximum DHCP message size 576
OPTION:  12 (  3) Host name                 testhost
---------------------------------------------------------------------------

  TIME: 2019-12-29 15:27:29.495
    IP: 192.168.1.102 (be:fa:b7:4:ca:34) > 192.168.1.7 (8e:5c:b0:99:be:da)
    OP: 2 (BOOTPREPLY)
 HTYPE: 1 (Ethernet)
  HLEN: 6
  HOPS: 0
   XID: d7fa1228
  SECS: 1
 FLAGS: 0
CIADDR: 0.0.0.0
YIADDR: 192.168.1.7
SIADDR: 0.0.0.0
GIADDR: 0.0.0.0
CHADDR: 8e:5c:b0:99:be:da: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.102
OPTION:  51 (  4) IP address leasetime      7200 (2h)
OPTION:   1 (  4) Subnet mask               255.255.255.0
OPTION:   3 (  4) Routers                   192.168.1.250
OPTION:  15 (  8) Domainname                altum.de
OPTION:   6 (  8) DNS server                192.168.1.102,192.168.1.103
---------------------------------------------------------------------------

  TIME: 2019-12-29 15:27:29.495
    IP: 192.168.1.103 (6:e3:54:3f:e6:27) > 192.168.1.7 (8e:5c:b0:99:be:da)
    OP: 2 (BOOTPREPLY)
 HTYPE: 1 (Ethernet)
  HLEN: 6
  HOPS: 0
   XID: d7fa1228
  SECS: 1
 FLAGS: 0
CIADDR: 0.0.0.0
YIADDR: 192.168.1.7
SIADDR: 0.0.0.0
GIADDR: 0.0.0.0
CHADDR: 8e:5c:b0:99:be:da: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.103
OPTION:  51 (  4) IP address leasetime      7200 (2h)
OPTION:   1 (  4) Subnet mask               255.255.255.0
OPTION:   3 (  4) Routers                   192.168.1.250
OPTION:  15 (  8) Domainname                altum.de
OPTION:   6 (  8) DNS server                192.168.1.102,192.168.1.103
---------------------------------------------------------------------------

  TIME: 2019-12-29 15:27:29.496
    IP: 0.0.0.0 (8e:5c:b0:99:be:da) > 255.255.255.255 (ff:ff:ff:ff:ff:ff)
    OP: 1 (BOOTPREQUEST)
 HTYPE: 1 (Ethernet)
  HLEN: 6
  HOPS: 0
   XID: d7fa1228
  SECS: 1
 FLAGS: 0
CIADDR: 0.0.0.0
YIADDR: 0.0.0.0
SIADDR: 0.0.0.0
GIADDR: 0.0.0.0
CHADDR: 8e:5c:b0:99:be:da:00:00:00:00:00:00:00:00:00:00
 SNAME: .
 FNAME: .
OPTION:  53 (  1) DHCP message type         3 (DHCPREQUEST)
OPTION:  61 ( 19) Client-identifier         ff:0b:89:5b:12:00:02:00:00:ab:11:0a:f3:70:6c:f2:6d:80:1c
OPTION:  55 (  9) Parameter Request List      1 (Subnet mask)
                                              3 (Routers)
                                             12 (Host name)
                                             15 (Domainname)
                                              6 (DNS server)
                                             26 (Interface MTU)
                                             33 (Static route)
                                            121 (Classless Static Route)
                                             42 (NTP servers)
                                            
OPTION:  57 (  2) Maximum DHCP message size 576
OPTION:  54 (  4) Server identifier         192.168.1.102
OPTION:  50 (  4) Request IP address        192.168.1.7
OPTION:  12 (  3) Host name                 testhost
---------------------------------------------------------------------------

  TIME: 2019-12-29 15:27:29.497
    IP: 192.168.1.102 (be:fa:b7:4:ca:34) > 192.168.1.7 (8e:5c:b0:99:be:da)
    OP: 2 (BOOTPREPLY)
 HTYPE: 1 (Ethernet)
  HLEN: 6
  HOPS: 0
   XID: d7fa1228
  SECS: 1
 FLAGS: 0
CIADDR: 0.0.0.0
YIADDR: 192.168.1.7
SIADDR: 0.0.0.0
GIADDR: 0.0.0.0
CHADDR: 8e:5c:b0:99:be:da: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.102
OPTION:  51 (  4) IP address leasetime      7200 (2h)
OPTION:   1 (  4) Subnet mask               255.255.255.0
OPTION:   3 (  4) Routers                   192.168.1.250
OPTION:  15 (  8) Domainname                altum.de
OPTION:   6 (  8) DNS server                192.168.1.102,192.168.1.103
---------------------------------------------------------------------------

  TIME: 2019-12-29 15:27:29.498
    IP: 192.168.1.103 (6:e3:54:3f:e6:27) > 192.168.1.7 (8e:5c:b0:99:be:da)
    OP: 2 (BOOTPREPLY)
 HTYPE: 1 (Ethernet)
  HLEN: 6
  HOPS: 0
   XID: d7fa1228
  SECS: 1
 FLAGS: 0
CIADDR: 0.0.0.0
YIADDR: 192.168.1.7
SIADDR: 0.0.0.0
GIADDR: 0.0.0.0
CHADDR: 8e:5c:b0:99:be:da: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.103
OPTION:  51 (  4) IP address leasetime      7200 (2h)
OPTION:   1 (  4) Subnet mask               255.255.255.0
OPTION:   3 (  4) Routers                   192.168.1.250
OPTION:  15 (  8) Domainname                altum.de
OPTION:   6 (  8) DNS server                192.168.1.102,192.168.1.103
---------------------------------------------------------------------------
-------------- next part --------------
A non-text attachment was scrubbed...
Name: systemd_networkd_debug.log
Type: text/x-log
Size: 9589 bytes
Desc: not available
URL: <http://alioth-lists.debian.net/pipermail/pkg-systemd-maintainers/attachments/20191229/ca1cb493/attachment-0001.bin>


More information about the Pkg-systemd-maintainers mailing list