Netplan no send option 81 to dhcp server
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/
send fqdn.fqdn "it02.pak.com.";
send fqdn.server-update off;
My netplan.yaml
network:
bonds:
bond0:
dhcp-
dhcp4: true
dhcp6: false
dhcp4-
hostname: "it02.pak.com."
interfaces:
- ens1
- ens8
macaddress: b8:3f:d2:2b:22:d8
mtu: 9000
parameters:
lacp-rate: fast
mode: 802.3ad
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?
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?