diff options
Diffstat (limited to 'src/dhcpv4.c')
-rw-r--r-- | src/dhcpv4.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/dhcpv4.c b/src/dhcpv4.c index a3b0e33..4bab081 100644 --- a/src/dhcpv4.c +++ b/src/dhcpv4.c @@ -917,6 +917,10 @@ void dhcpv4_handle_msg(void *addr, void *data, size_t len, ubus_bcast_dhcp_event("dhcp.ack", req->chaddr, req->hlen, &reply.yiaddr, a ? a->hostname : NULL, iface->ifname); #endif + if (msg == DHCPV4_MSG_ACK) { + dns_update_rr(a ? a->hostname : NULL, AF_INET, &reply.yiaddr); + dns_update_finish(); + } } static bool dhcpv4_insert_assignment(struct list_head *list, struct dhcp_assignment *a, |