diff options
author | Mikael Magnusson <mikma@users.sourceforge.net> | 2021-08-15 11:51:22 +0200 |
---|---|---|
committer | Mikael Magnusson <mikma@users.sourceforge.net> | 2021-09-21 22:37:08 +0200 |
commit | 8d777d12186bb6d5dc4c39e5ccbe50a164ea547c (patch) | |
tree | 593cee5bd1a6cb7c485bcafab343c04e51e77563 /src/dhcpv4.c | |
parent | 01b4e6046f10e21809c3f380f2d33bf3fe59698d (diff) |
WIP dnsupdatednsupdate
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, |