nsupdate is part of the bind-tools package which allows you to use standard DNS protocols to update the A and PTR records for your host. Many people use the -h argument of dhcpcd to associate an A record with their hostname, but that does not actually work on my employer's network (maybe dhcpd and the name daemon aren't properly coupled) I would like a way to specify that the networking system should use something like nsupdate <<EOF update delete $fqdn A update add $fqdn $dhcp_lease_time A $ip update add $inaddrarpa $dhcp_lease_time PTR $fqdn send EOF on start, and just a delete on stop
Well, use /etc/conf.d/local.{start,stop} or fix your DHCP/DNS? :)
The problem is that your dhcp server is not updating the dns server. This is entirely a server side issue and I do not recommend the use of nsupdate at all. The solution by Jakub is correct, but a better place would be in conf.d/net postup and predown functions.
Aye, local.start/stop would not work because I bring that interface up and down anywhere from zero to five times in a day. I can't fix the DHCP server because it's operated by a couple of overworked Windows drones. I will look up the documentation and experiment with /etc/conf.d/net functions.