Netplan no send option 81 to dhcp server

Bug #2037719 reported by RoMan
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
netplan
Triaged
Wishlist
Unassigned

Bug Description

I have MS dns server and dhcp server.
Netplan no send option 81 to dhcp server for dynamic update name.

-----
From learn.microsoft:
Clients interact with DNS dynamic update protocol in the following manner:

The client initiates a DHCP request message (DHCPREQUEST) to the server. The request includes option 81.
The server returns a DHCP acknowledgment message (DHCPACK) to the client. The client grants an IP address lease and includes option 81. If the DHCP server is configured with the default settings, option 81 tells the client that the DHCP server will register the DNS PTR record and that the client will register the DNS A record.
Asynchronously, the client sends a DNS update request to the DNS server for its own forward lookup record, a host A resource record.
The DHCP server registers the PTR record of the client.
------

If use dhclient then everything works correctly.
With option in /etc/dhcp/dhclient.conf
send fqdn.fqdn "it02.pak.com.";
send fqdn.server-update off;

My netplan.yaml

network:
  bonds:
    bond0:
      dhcp-identifier: mac
      dhcp4: true
      dhcp6: false
      dhcp4-overrides:
        send-hostname: true
        hostname: "it02.pak.com."
      interfaces:
      - ens1
      - ens8
      macaddress: b8:3f:d2:2b:22:d8
      mtu: 9000
      parameters:
        lacp-rate: fast
        mii-monitor-interval: 100
        mode: 802.3ad
        transmit-hash-policy: layer3+4
  ethernets:
    ens1:
      dhcp4: false
      dhcp6: false
      match:
        macaddress: b8:3f:d2:2b:22:d8
      set-name: ens1
    ens8:
      dhcp4: false
      dhcp6: false
      match:
        macaddress: b8:3f:d2:2b:22:d9
      set-name: ens8
  version: 2

How configure netplan for dynamic update DNS?

Revision history for this message
Danilo Egea Gondolfo (danilogondolfo) wrote :

Hi there,

I'm not completely sure of how to make systemd-networkd and Windows DHCP work together.

According to systemd.network(5), the SendHostname options is enabled by default in systemd. The man page also says that the Hostname option shouldn't contain spaces or dots. Have you tried to set the hostname to "it02" instead of the FQDN?

Changed in netplan:
status: New → Triaged
Revision history for this message
RoMan (f0rextazy) wrote :

Hi, thanks for your reply.

I checked the network traffic via wireshark.

Systemd send hostname in 12 options in DHCP discover.

But does not send 81 Option: Client Fully Qualified Domain Name.

Is it possible to configure netplan send 81 Option?

Revision history for this message
Lukas Märdian (slyon) wrote :

Netplan does not currently support that natively.

But it looks like you could have a systemd-networkd override config to you Netplan config, e.g.:

/etc/systemd/network/10-netplan-bond0.network.d/override.conf
```
[DHCPv4]
SendOption="81:string:it02.pak.com."

```

see https://www.freedesktop.org/software/systemd/man/latest/systemd.network.html#SendOption=
There are also the RequestOptions= and SendVendorOption= settings that look related.

Changed in netplan:
importance: Undecided → Wishlist
Revision history for this message
RoMan (f0rextazy) wrote :

I apologize for the long answer.
I tried your suggestion but it doesn't work.
I'm applying a wireshark, there you can see how 81 options are not passed.

Revision history for this message
RoMan (f0rextazy) wrote :
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.